https://github.com/mirantis/puppet-bootstrap
Bootstrap scripts for Foreman and Puppet servers
https://github.com/mirantis/puppet-bootstrap
Last synced: 6 months ago
JSON representation
Bootstrap scripts for Foreman and Puppet servers
- Host: GitHub
- URL: https://github.com/mirantis/puppet-bootstrap
- Owner: Mirantis
- License: apache-2.0
- Created: 2015-07-27T08:03:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T11:52:55.000Z (almost 6 years ago)
- Last Synced: 2025-04-19T18:50:34.966Z (9 months ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 4
- Watchers: 21
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# puppet-bootstrap
These 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:
* https://github.com/mirantis/puppet-control-template.git
* https://github.com/mirantis/profiles.git
* https://github.com/mirantis/roles.git
## Installation:
* Install hiera-eyaml
```
gem install hiera-eyaml
```
* Create pkcs7 keys
```
eyaml createkeys
```
* Clone this repo
```
git clone https://github.com/mirantis/puppet-bootstrap.git
```
* Modify bootstrap-foreman.sh and fill in the values for the pkcs7 keys, control repo location, etc
* Modify bootstrap-master.sh and fill in the values for the pkcs7 keys, control repo location, csr_attributes info, etc.
* Modify bootstrap-node.sh and fill in the values for the csr_attributes info, etc
## Bootstrapping
Once your values are properly filled in in the bootstrap scripts, create a foreman server by running:
```
./bootstrap-foreman.sh
```
Once that is created, create a PuppetBD server by running:
```
./bootstrap-node.sh
```
When the initial run is done, login to foreman and edit the host. Add the following info:
```
parameters -> global parameter -> application_tier = puppetdb
puppet classes = roles::puppet::db
```
Run puppet again on the node to stand up the puppetdb server.
```
puppet agent -t --server [your foreman server fqdn] --ca_server [your foreman server fqdn]
```
Once your puppetdb server is running, bootstrap a puppet master:
```
./bootstrap-master.sh
```
Once the initial run is done, login to foreman and edit the host. Add the following info:
```
parameters -> global parameter -> application_tier = puppet
puppet classes = roles::puppet::master
```
Run puppet agein on the node to stand up the master:
```
puppet agent -t --server [your foreman server fqdn] --ca_server [your foreman server fqdn]
```