diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-15 10:07:50 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-15 10:10:11 +0100 |
commit | fed1b39d84c0bf91fa57d9c3449f376ba7d42cc8 (patch) | |
tree | eebbbd919f68bb7a79f58d719eea68efbf8ecaf5 /manifests/puppetagent.pp | |
parent | puppetdb server compatibility. (diff) | |
download | profiles-fed1b39d84c0bf91fa57d9c3449f376ba7d42cc8.tar.gz profiles-fed1b39d84c0bf91fa57d9c3449f376ba7d42cc8.tar.xz |
Rename profiles::client to profiles::puppetagent.
Diffstat (limited to 'manifests/puppetagent.pp')
-rw-r--r-- | manifests/puppetagent.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/puppetagent.pp b/manifests/puppetagent.pp new file mode 100644 index 0000000..3e65c8b --- /dev/null +++ b/manifests/puppetagent.pp @@ -0,0 +1,13 @@ +class profiles::puppetagent { + if defined(Class['profiles::puppetserver']) { + fail('Can only either be puppetagent or puppetserver (which is also a puppetagent), not both') + } + + class { 'puppet': + server => false, + agent => true, + show_diff => true, + puppetmaster => $facts['extlib__puppet_config']['main']['server'], + } + +} |