{"id":19049319,"url":"https://github.com/cppforlife/bosh_release_diff","last_synced_at":"2025-02-22T00:17:06.472Z","repository":{"id":13350713,"uuid":"16038026","full_name":"cppforlife/bosh_release_diff","owner":"cppforlife","description":"Shows detailed information about BOSH releases","archived":false,"fork":false,"pushed_at":"2014-01-27T11:29:37.000Z","size":192,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T09:25:37.575Z","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/cppforlife.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":"2014-01-19T01:45:03.000Z","updated_at":"2016-02-15T13:57:00.000Z","dependencies_parsed_at":"2022-09-04T10:52:21.555Z","dependency_job_id":null,"html_url":"https://github.com/cppforlife/bosh_release_diff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fbosh_release_diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fbosh_release_diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fbosh_release_diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppforlife%2Fbosh_release_diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppforlife","download_url":"https://codeload.github.com/cppforlife/bosh_release_diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240105469,"owners_count":19748465,"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-11-08T23:10:32.450Z","updated_at":"2025-02-22T00:17:06.456Z","avatar_url":"https://github.com/cppforlife.png","language":"Ruby","readme":"# BoshReleaseDiff\n\nShows detailed information about BOSH releases. It could be used for:\n\n- Looking at job template properties\n\n- Comparing job template properties across multiple release versions\n\n- Cross referencing job template properties with a deployment manifest\n\n\n## Usage\n\n```\ngit clone https://github.com/cppforlife/bosh_release_diff\ncd bosh_release_diff\nbundle install\n```\n\nBasic:\n\n```\nbundle exec bosh diff release cf-147.tgz\n```\n\nPass in multiple releases, though passing in \nmultiple versions of the same release tends to be more useful:\n\n```\nbundle exec bosh diff release cf-147.tgz cf-148.tgz cf-149.tgz\n```\n\nFocus only on the changes:\n\n```\nbundle exec bosh diff release cf-147.tgz cf-148.tgz --changes job_added,property_added\n```\n\nFilter down by values:\n\n```\nbundle exec bosh diff release cf-147.tgz cf-148.tgz --values job_name=uaa,property_name=~nats\n```\n\nInclude one or more deployment manifests\nfor easier cross referencing of properties:\n\n```\nbundle exec bosh diff release cf-147.tgz cf-148.tgz cf.yml\n```\n\nMisc:\n\n```\nbundle exec bosh diff release cf-147.tgz --debug\nbundle exec bosh diff release cf-147.tgz --packages\n```\n\n\n## Example output\n\nCross-referencing deployment manifest property values with release properties:\n\n```\n$ bundle exec bosh diff release ~/Downloads/cf-154.1-dev.tgz ~/cf.yml\n...\n\n- nats\n  ∟ [cf-release/154.1-dev] present; 10 prop(s), 5 package(s)\n\n  Properties: \n  - nats.address (NATS address)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to \"172.16.214.11\"\n\n  - nats.authorization_timeout (After accepting a connection, wait up to this many seconds for credentials.)\n    ∟ [cf-release/154.1-dev] present; defaults to 15\n      ∟ [nats@cf.yml] not set\n\n  - nats.machines (IP of each NATS cluster member.)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] not set\n\n  - nats.password (Password for server authentication.)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to \"asdfasdfasdf\"\n\n  - nats.port (The port for the NATS server to listen on.)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to 4222\n\n  - nats.use_gnatsd (Using gnatsd or ruby nats server)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] not set\n\n  - nats.user (Username for server authentication.)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to \"nats\"\n\n  - networks.apps\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to \"default\"\n\n  - syslog_aggregator.address (The address of the syslog_aggregator job.)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to \"172.16.214.13\"\n\n  - syslog_aggregator.port (The port used by the syslog_aggregator job.)\n    ∟ [cf-release/154.1-dev] present; no default\n      ∟ [nats@cf.yml] set to 54321\n```\n\nFinding which properties were added in a new release version without defaults:\n\n```\n$ bundle exec bosh diff release ~/Downloads/cf-147.tgz ~/Downloads/cf-154.tgz \\\n  --changes property_added                                                    \\\n  --values job_name=gorouter,property_has_default_value=false\n\nWARNING: loading local plugin: lib/bosh/cli/commands/diff_release.rb\n\nExtracted releases in 11 sec(s)\n\nUsing releases: cf/147 (07e0aa91*), cf/154 (52777d46*)\n\nJobs (aka job templates):\n- gorouter\n  ∟ [cf/147] present; 13 prop(s), 3 package(s)\n  ∟ [cf/154] present; 15 prop(s), 4 package(s)\n\n  Properties:\n  - loggregator_endpoint.host (The host used to emit messages to the Loggregator)\n    ∟ [cf/147] not present\n    ∟ [cf/154] added; no default\n\n  - loggregator_endpoint.shared_secret (The key used to sign log messages)\n    ∟ [cf/147] not present\n    ∟ [cf/154] added; no default\n\n  - nats.machines (IP of each NATS cluster member.)\n    ∟ [cf/147] not present\n    ∟ [cf/154] added; no default\n\nCompared in 0 sec(s)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppforlife%2Fbosh_release_diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcppforlife%2Fbosh_release_diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppforlife%2Fbosh_release_diff/lists"}