{"id":20661887,"url":"https://github.com/mirantis/puppet-bootstrap","last_synced_at":"2025-06-27T01:33:05.536Z","repository":{"id":35492951,"uuid":"39762500","full_name":"Mirantis/puppet-bootstrap","owner":"Mirantis","description":"Bootstrap scripts for Foreman and Puppet servers","archived":false,"fork":false,"pushed_at":"2020-02-26T11:52:55.000Z","size":13,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-19T18:50:34.966Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mirantis.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}},"created_at":"2015-07-27T08:03:01.000Z","updated_at":"2023-07-30T19:17:16.000Z","dependencies_parsed_at":"2022-09-12T13:01:31.050Z","dependency_job_id":null,"html_url":"https://github.com/Mirantis/puppet-bootstrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mirantis/puppet-bootstrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fpuppet-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fpuppet-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fpuppet-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fpuppet-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mirantis","download_url":"https://codeload.github.com/Mirantis/puppet-bootstrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mirantis%2Fpuppet-bootstrap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262172774,"owners_count":23270099,"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-16T19:12:02.777Z","updated_at":"2025-06-27T01:33:05.512Z","avatar_url":"https://github.com/Mirantis.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppet-bootstrap\nThese scripts are for bootstrapping/standing up a Foreman server and Puppetmaster.  They are intended to be used with the following projects and assume that you have your own fork/copy of those repositories with your data in them:\n\n* https://github.com/mirantis/puppet-control-template.git\n* https://github.com/mirantis/profiles.git\n* https://github.com/mirantis/roles.git\n\n## Installation:\n* Install hiera-eyaml\n```\ngem install hiera-eyaml\n```\n* Create pkcs7 keys\n```\neyaml createkeys\n```\n* Clone this repo\n```\ngit clone https://github.com/mirantis/puppet-bootstrap.git\n```\n* Modify bootstrap-foreman.sh and fill in the values for the pkcs7 keys, control repo location, etc\n* Modify bootstrap-master.sh and fill in the values for the pkcs7 keys, control repo location, csr_attributes info, etc.\n* Modify bootstrap-node.sh and fill in the values for the csr_attributes info, etc\n\n## Bootstrapping\nOnce your values are properly filled in in the bootstrap scripts, create a foreman server by running:\n```\n./bootstrap-foreman.sh\n```\nOnce that is created, create a PuppetBD server by running:\n```\n./bootstrap-node.sh\n```\nWhen the initial run is done, login to foreman and edit the host.  Add the following info:\n```\nparameters -\u003e global parameter -\u003e application_tier = puppetdb\npuppet classes = roles::puppet::db\n```\nRun puppet again on the node to stand up the puppetdb server.\n```\npuppet agent -t --server [your foreman server fqdn] --ca_server [your foreman server fqdn]\n```\n\nOnce your puppetdb server is running, bootstrap a puppet master:\n```\n./bootstrap-master.sh\n```\nOnce the initial run is done, login to foreman and edit the host. Add the following info:\n```\nparameters -\u003e global parameter -\u003e application_tier = puppet\npuppet classes = roles::puppet::master\n```\nRun puppet agein on the node to stand up the master:\n```\npuppet agent -t --server [your foreman server fqdn] --ca_server [your foreman server fqdn]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirantis%2Fpuppet-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirantis%2Fpuppet-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirantis%2Fpuppet-bootstrap/lists"}