summaryrefslogtreecommitdiff
path: root/manifests/puppetagent.pp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--manifests/puppetagent.pp13
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'],
+ }
+
+}