Extend base control repo and add support for profiles

zenbook
Jack Henschel 5 years ago
parent 6ccb1caf13
commit b369bed6f0

1
.gitignore vendored

@ -1 +1,2 @@
cache/
var/

@ -0,0 +1,3 @@
modulepath = site:modules:$basemodulepath
# disable catalog caching (e.g. for developing)
# environment_timeout = 0

@ -1,15 +1,11 @@
[main]
[user]
#user = puppet
#group = puppet
# The main Puppet configuration directory. The default for this setting
# is calculated based on the user. If the process is running as root or
# the user that Puppet is supposed to run as, it defaults to a system
# directory, but if it's running as any other user, it defaults to being
# in the user's home directory.
# The default value is '/home/jack/.puppet/etc'.
confdir = /home/jack/.puppet/etc
# The main Puppet code directory. The default for this setting
@ -18,7 +14,7 @@ confdir = /home/jack/.puppet/etc
# directory, but if it's running as any other user, it defaults to being
# in the user's home directory.
# The default value is '/home/jack/.puppet/etc/code'.
#codedir = /home/jack/.puppet/etc/code
codedir = /home/jack/.puppet/
# Where Puppet stores dynamic and growing data. The default for this
# setting is calculated specially, like `confdir`_.
@ -60,11 +56,7 @@ confdir = /home/jack/.puppet/etc
# recommended value is `$codedir/environments`. For more details, see
# <https://puppet.com/docs/puppet/latest/environments_about.html>
# The default value is '$codedir/environments'.
#environmentpath = /home/jack/.puppet/etc/code/environments
# The YAML file containing indirector route configuration.
# The default value is '$confdir/routes.yaml'.
#route_file = /home/jack/.puppet/etc/routes.yaml
environmentpath = /home/jack/.puppet/
# The hiera configuration file. Puppet only reads this file on startup, so you must restart the puppet master every time you edit it.
hiera_config = $confdir/hiera.yaml

@ -1,6 +1,7 @@
node default {
$description = lookup('description')
notice("${::fqdn}: ${description}")
contain profile::example
}
# node 'ZenBook' {

@ -1,3 +1,3 @@
#!/bin/sh
puppet apply --config puppet.conf manifests/site.pp
puppet apply --config etc/puppet.conf manifests/site.pp $@

@ -0,0 +1,5 @@
# References to various resources around Puppet
* Puppet configuration directory (confdir): https://puppet.com/docs/puppet/5.5/dirs_confdir.html
* Configuring Hiera: https://puppet.com/docs/puppet/5.5/hiera_config_yaml_5.html
* Facts and built-in variables: https://puppet.com/docs/puppet/5.0/lang_facts_and_builtin_vars.html

@ -0,0 +1,3 @@
class profile::example {
notice('Example Profile')
}
Loading…
Cancel
Save