git remote add bootstrap $(REPO)
config:
- FACTER_BOOTSTRAP_PATH="$(CWD)" puppet apply --hiera-config=hiera.yaml --modulepath=modules manifests/classes/configurator.pp
+ FACTER_BOOTSTRAP_PATH="$(CWD)" puppet apply --confdir="$(CWD)" --modulepath=modules manifests/classes/configurator.pp
apply:
- FACTER_BOOTSTRAP_PATH="$(CWD)" puppet apply --hiera-config=hiera.yaml --modulepath=modules manifests/$(stage).pp
+ FACTER_BOOTSTRAP_PATH="$(CWD)" puppet apply --confdir="$(CWD)" --modulepath=modules manifests/$(stage).pp
clean:
rm -rf modules
---
+#
+# Boostrap
+#
+bootstrap::base_domain: 'vagrantup.com'
+
#
# General
#
:backends:
- yaml
:yaml:
- :datadir: /etc/puppet/hiera
+ :datadir: hiera
:hierarchy:
- '%{::environment}/domain/%{::domain}/node/%{::clientcert}'
- '%{::environment}/domain/%{::domain}/role/%{::role}'
#
# Variables
-$templates = "$bootstrap_path/templates"
+$templates = "$bootstrap_path/templates"
+$base_domain = hiera('bootstrap::base_domain', 'example.org')
+$db_password = hiera('nodo::role::master::db_password', 'changeme')
# Puppet configuration
file { "$bootstrap_path/puppet.conf":
dbadapter = mysql
dbserver = localhost
dbuser = puppet
-dbpassword = <%= storeconfigs_pw %>
+dbpassword = <%= db_password %>
dbconnections = 15
certname = puppet.<%= base_domain %>
ssl_client_header = SSL_CLIENT_S_DN