{"id":27054936,"url":"https://github.com/aschmidt75/infrastructure-by-story","last_synced_at":"2026-06-11T16:31:04.265Z","repository":{"id":6915858,"uuid":"8166420","full_name":"aschmidt75/infrastructure-by-story","owner":"aschmidt75","description":"Behaviour driven development for infrastructure","archived":false,"fork":false,"pushed_at":"2014-02-14T16:23:27.000Z","size":168,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T09:17:52.900Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aschmidt75.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-12T20:15:15.000Z","updated_at":"2014-02-14T16:23:27.000Z","dependencies_parsed_at":"2022-08-26T09:31:02.466Z","dependency_job_id":null,"html_url":"https://github.com/aschmidt75/infrastructure-by-story","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aschmidt75/infrastructure-by-story","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Finfrastructure-by-story","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Finfrastructure-by-story/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Finfrastructure-by-story/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Finfrastructure-by-story/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aschmidt75","download_url":"https://codeload.github.com/aschmidt75/infrastructure-by-story/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschmidt75%2Finfrastructure-by-story/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34208761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-04-05T09:17:55.913Z","updated_at":"2026-06-11T16:31:04.246Z","avatar_url":"https://github.com/aschmidt75.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"infrastructure-by-story\n=======================\n\nInfrastructure-by-story is a small, cucumber based example of how to do behaviour driven development for infrastructure-related things.\nIt relies on facter to collect and check OS data such as networks and the like.\n\nExample\n=======\n\n```\nFeature: Running Portal platform\n        In order to have a functional Portal platform \n        i need networks and defined servers \n        and communication must be possible\n\nScenario: Define a web node\n        Given my hostname is like \"web\"\n        Then i should be a virtual machine\n        And i should have at least 1 cpu with at least 4G memory\n        And i should have a network_eth1 of 192.168.21.0\n        And i should have a netmask_eth1 of 255.255.255.0\n\nScenario: Define a database node\n        Given my hostname is like \"db\"\n        Then i should be a physical machine\n        And i should have at least 2 cpus\n        And i should have at least 8G memory\n        And i should have a mount /database with at least 250G space\n```\n\nGiven an abstraction layer, which maps physical information (i.e. 192.168.21.0/24) to logical names (i.e. \"backend\"),\nan extended version of the above could be encoded as\n\n```\nScenario: I need to communicate to my backend services\n        Given my hostname is like \"web\"\n        Then i should have a \"backend\" network\n        And i should have a \"log\" network\n```\n\nTodo\n====\n- [ ] integrate deps via bundler\n- [ ] create abstraction layer\n- [ ] create remote version with mcollective\n\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Andreas Schmidt\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschmidt75%2Finfrastructure-by-story","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faschmidt75%2Finfrastructure-by-story","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschmidt75%2Finfrastructure-by-story/lists"}