{"id":17096165,"url":"https://github.com/jairojunior/cli-to-resource","last_synced_at":"2026-05-08T08:08:10.393Z","repository":{"id":150566505,"uuid":"92451495","full_name":"jairojunior/cli-to-resource","owner":"jairojunior","description":"REST API to convert plain JBoss-CLI commands to Ansible/Puppet representation.","archived":false,"fork":false,"pushed_at":"2017-05-28T19:59:21.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T17:49:32.543Z","etag":null,"topics":["java","jboss","rest-api","wildfly","wildfly-swarm"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jairojunior.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-25T23:04:16.000Z","updated_at":"2017-06-12T16:27:28.000Z","dependencies_parsed_at":"2023-07-11T23:01:25.965Z","dependency_job_id":null,"html_url":"https://github.com/jairojunior/cli-to-resource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jairojunior/cli-to-resource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jairojunior%2Fcli-to-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jairojunior%2Fcli-to-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jairojunior%2Fcli-to-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jairojunior%2Fcli-to-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jairojunior","download_url":"https://codeload.github.com/jairojunior/cli-to-resource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jairojunior%2Fcli-to-resource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32772094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["java","jboss","rest-api","wildfly","wildfly-swarm"],"created_at":"2024-10-14T14:44:45.909Z","updated_at":"2026-05-08T08:08:10.368Z","avatar_url":"https://github.com/jairojunior.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JBoss-CLI to Puppet/Ansible\n\nREST API to convert plain JBoss-CLI commands to Ansible/Puppet representation.\n\n## Example\n\n`mvn wildfly-swarm:run`\n\n`curl -s -X POST -H \"Accept: application/vnd.wildfly.resource.puppet+json\" -H \"Content-Type: application/json\" --data '{ \"commands\": [\"/system-property=foo:add(value=bar)\"] }'  http://127.0.0.1:8080/cli | jq --raw-output .content`\n\n## Puppet\n\nFrom:\n\n```\n/subsystem=datasources/xa-data-source=petshopDSXA:add(driver-name=h2, jndi-name=\\\"java:jboss/datasources/petshopDSXA\\\", user-name=petshop, password=password, xa-datasource-class=\\\"org.h2.jdbcx.JdbcDataSource\\\")\n\n/subsystem=datasources/xa-data-source=petshopDSXA/xa-datasource-properties=URL:add(value=\\\"jdbc:h2://10.10.10.10/petshop\\\")\n```\n\nTo:\n\n```puppet\nwildfly_resource { '/subsystem=datasources/xa-data-source=petshopDSXA':\n  state =\u003e {\n    'driver-name'              =\u003e 'h2',\n    'jndi-name'                =\u003e 'java:jboss/datasources/petshopDSXA',\n    'user-name'                =\u003e 'petshop',\n    'password'                 =\u003e 'password',\n    'xa-datasource-class'      =\u003e 'org.h2.jdbcx.JdbcDataSource',\n    'xa-datasource-properties' =\u003e {\n          'url' =\u003e {'value' =\u003e 'jdbc:postgresql://10.10.10.10/petshop'}\n    },\n  }\n}\n```\n\n## Ansible (Soon)\n\nFrom:\n\n```\n/subsystem=datasources/data-source=DemoDS:add(driver-name=h2, connection-url=\"jdbc:h2:mem:demo;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE\", jndi-name=\"java:jboss/datasources/DemoDS\", user-name=sa, password=sa, min-pool-size=10, max-pool-size=30)\n```\n\n\nTo:\n\n```yaml\n- jboss_resource:\n  name: \"/subsystem=datasources/data-source=DemoDS\"\n  state: present\n  attributes:\n    driver-name: h2\n    connection-url: \"jdbc:h2:mem:demo;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE\"\n    jndi-name: \"java:jboss/datasources/DemoDS\"\n    user-name: sa\n    password: sa\n    min-pool-size: 10\n    max-pool-size: 30\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjairojunior%2Fcli-to-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjairojunior%2Fcli-to-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjairojunior%2Fcli-to-resource/lists"}