{"id":18834482,"url":"https://github.com/fgouteroux/demo-puppet-beaker","last_synced_at":"2025-04-14T04:32:26.113Z","repository":{"id":27074470,"uuid":"30540952","full_name":"fgouteroux/demo-puppet-beaker","owner":"fgouteroux","description":"Test Automation platform using beaker and puppet","archived":false,"fork":false,"pushed_at":"2015-02-12T14:36:50.000Z","size":147,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T19:11:26.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/fgouteroux.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":"2015-02-09T14:56:43.000Z","updated_at":"2017-09-29T03:31:37.000Z","dependencies_parsed_at":"2022-09-02T02:41:17.843Z","dependency_job_id":null,"html_url":"https://github.com/fgouteroux/demo-puppet-beaker","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/fgouteroux%2Fdemo-puppet-beaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgouteroux%2Fdemo-puppet-beaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgouteroux%2Fdemo-puppet-beaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgouteroux%2Fdemo-puppet-beaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgouteroux","download_url":"https://codeload.github.com/fgouteroux/demo-puppet-beaker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248822024,"owners_count":21166993,"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-08T02:12:36.809Z","updated_at":"2025-04-14T04:32:25.283Z","avatar_url":"https://github.com/fgouteroux.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# demo-puppet-beaker\n\nTest Automation platform using puppet and beaker on [Amazon Web Services (AWS)](http://aws.amazon.com)\n\n# Installation\n\n1/ Please fill the config file **aws_auth** with your IAM user credentials (access/secret key).\n```\n:default:\n  :aws_access_key_id: xxxxxxxxxxxx\n  :aws_secret_access_key: xyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxy\n```\n\n2/ Run the script **deploy_beaker_env.sh** that will create two containers:\n  - gitlab\n  - jenkins\n\n# Use\n\n## Gitlab\n\n\u003e The gitlab version used in the docker container is the [community edition](https://gitlab.com/gitlab-org/gitlab-ce/).\n\n1. Change the default password for the \"**root**\" user, by default **5iveL!fe**\n2. Create your gitlab project\n3. Add a web hook like this \"http://your-jenkins-server/gitlab/build_now\"\n\n\u003e For testing only, you can use the gitlab-sample-project repository for your gitlab project. See [For testing only](#For-testing-only)\n\n## Jenkins\n\n\u003e Jenkins version has been fixed to the **1.596** and Dockerfile has been created to integrate beaker requirements.\n\n\u003e Docker build source can be retrieved from [here](https://registry.hub.docker.com/_/jenkins/).\n\n\n1. Install the **gitlab-hook plugin**. That will install **git-client** and others dependencies required.\n2. Create your jenkins job with:\n\n  - parameterized build with string parameter **BRANCH**.\n  - configured git repository\n\n## Test\n\n1. Modify your code\n2. Push it\n3. Watch the running jenkins job\n4. Get Tests Results\n\n## For testing only\n\nBefore using it, you have to:\n\n1/ Set the gitlab project address in **bootstrap_puppetmaster.sh** at line 125\n\n```\n[...]\n:cachedir: /var/cache/r10k\n:sources:\n  :local:\n    remote: http://192.168.59.103/puppet/puppet.git\n    basedir: /etc/puppet/environments\n```\n2/ Create \"**roles**\" and \"**modules**\" repositories in your gitlab (files are located in modules directory)\n\n3/ Set the repositories addresses in **Puppetfile** at lines 28-31\n\n```\n[...]\nmod \"roles\",\n  :git =\u003e \"http://192.168.59.103/puppet/roles.git\"\n\nmod \"profiles\",\n  :git =\u003e \"http://192.168.59.103/puppet/profiles.git\"\n```\n\n4/ Set AWS parameters in:\n\n  * ec2.yaml in **config/image_template/**\n\n```\nAMI:\n  debian-wheezy-amd64-west:\n    :image:\n      :foss: ami-3d9cc00d\n    :region: us-west-2\n  ubuntu-14.04-amd64-west:\n    :image:\n      :foss: ami-3d50120d\n    :region: us-west-2\n```\n  * app_server.cfg in **spec/acceptance/nodesets**\n\n```\nHOSTS:\n  puppet:\n    roles:\n      - master\n    platform: debian-wheezy-amd64-west\n    user: admin\n    subnet_id: subnet-XXXXXXX\n    vpc_id: vpc-XXXXXXX\n    amisize: t2.small\n    hypervisor: ec2\n    snapshot: foss\n  app-server-1:\n    roles:\n      - agent\n      - app_server\n    platform: debian-wheezy-amd64-west\n    user: admin\n    subnet_id: subnet-XXXXXXX\n    vpc_id: vpc-XXXXXXX\n    amisize: t2.small\n    hypervisor: ec2\n    snapshot: foss\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgouteroux%2Fdemo-puppet-beaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgouteroux%2Fdemo-puppet-beaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgouteroux%2Fdemo-puppet-beaker/lists"}