{"id":13521621,"url":"https://github.com/nledez/proxmox","last_synced_at":"2025-03-31T20:32:10.490Z","repository":{"id":9696465,"uuid":"11645350","full_name":"nledez/proxmox","owner":"nledez","description":"You need to manage a proxmox host with Ruby? This library is for you.","archived":false,"fork":false,"pushed_at":"2019-03-21T16:05:28.000Z","size":91,"stargazers_count":38,"open_issues_count":8,"forks_count":15,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-06T09:09:59.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nledez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-24T21:08:47.000Z","updated_at":"2024-05-23T05:43:48.000Z","dependencies_parsed_at":"2022-08-25T23:21:16.347Z","dependency_job_id":null,"html_url":"https://github.com/nledez/proxmox","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nledez%2Fproxmox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nledez%2Fproxmox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nledez%2Fproxmox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nledez%2Fproxmox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nledez","download_url":"https://codeload.github.com/nledez/proxmox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222679160,"owners_count":17021812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:00:36.524Z","updated_at":"2024-11-02T05:31:41.874Z","avatar_url":"https://github.com/nledez.png","language":"Ruby","funding_links":[],"categories":["API"],"sub_categories":[],"readme":"# Proxmox\n\nYou need to manage a proxmox host with Ruby? This library is for you.\n\n!!! Warning, it's a experimental version. Some methods could be renamed !!!\n\nCurrent build:\n[![Build Status](https://travis-ci.org/nledez/proxmox.png)](https://travis-ci.org/nledez/proxmox)\n[![Coverage Status](https://coveralls.io/repos/nledez/proxmox/badge.png)](https://coveralls.io/r/nledez/proxmox)\n[![Dependency Status](https://gemnasium.com/nledez/proxmox.png)](https://gemnasium.com/nledez/proxmox)\n[![Code Climate](https://codeclimate.com/github/nledez/proxmox.png)](https://codeclimate.com/github/nledez/proxmox)\n[![Inline docs](http://inch-ci.org/github/nledez/proxmox.png)](http://inch-ci.org/github/nledez/proxmox)\n\n[RubyGem](http://rubygems.org/gems/proxmox)\n\n[Rubydoc](http://rubydoc.info/github/nledez/proxmox/master/frames)\n\nInspirated from:\nhttps://bitbucket.org/jmoratilla/knife-proxmox/ but I would like to have\nthe same without chef.\nhttps://github.com/maxschulze/uv_proxmox but listing some task does not\nwork for me. No tests, use ssh.\n\nDocumentation from:\n- http://pve.proxmox.com/wiki/Proxmox_VE_API\n- http://pve.proxmox.com/pve2-api-doc/\n\nSo I start to create one fully tested (TDD method).\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'proxmox'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install proxmox\n\n## Usage\n\n    require 'awesome_print'\n    require 'proxmox'\n    \n    def wait_status(server1, task)\n      puts task\n      while server1.task_status(task) == \"running\"\n        puts '.'\n        sleep 1\n      end\n    \n      puts server1.task_status(task)\n    end\n    \n    server1 =\n    Proxmox::Proxmox.new(\"https://the-proxmox-server:8006/api2/json/\",\n    \"node\", \"root\", \"secret\", \"pam\")\n    ap server1.templates\n    \n    vm1 = server1.openvz_post(\"ubuntu-10.04-standard_10.04-4_i386\", 200)\n    wait_status(server1, vm1)\n    \n    ap server1.openvz_vm_status(200)\n    vm1 = server1.openvz_vm_start(200)\n    begin\n      wait_status(server1, vm1)\n    rescue\n    end\n    sleep 5\n    ap server1.openvz_vm_shutdown(200)\n    begin\n      wait_status(server1, vm1)\n    rescue\n    end\n    sleep 5\n    ap server1.openvz_vm_status(200)\n    \n    vm1 = server1.openvz_delete(200)\n    wait_status(server1, vm1)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Create spec (in file spec/lib/proxmox_spec.rb)\n4. Write your code (in lib/proxmox.rb)\n5. Check spec \u0026 coverage (`bundle exec rspec` or `bundle exec guard`)\n6. Commit your changes (`git commit -am 'Add some feature'`)\n7. Push to the branch (`git push origin my-new-feature`)\n8. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnledez%2Fproxmox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnledez%2Fproxmox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnledez%2Fproxmox/lists"}