diff --git a/doc/file.README.html b/doc/file.README.html index 6d76f10..b46d78c 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -124,7 +124,7 @@

through Foreman:

-

In order to apply parameters through Foreman, confdroid_nagios::params must be added to the host or host group in question.

+

In order to apply parameters through Foreman, *confdroid_nagios::params- must be added to the host or host group in question.

See more details about class deployment on Confdroid.com.

@@ -140,7 +140,7 @@

Tests

diff --git a/doc/index.html b/doc/index.html index 2e22502..a351128 100644 --- a/doc/index.html +++ b/doc/index.html @@ -124,7 +124,7 @@

through Foreman:

-

In order to apply parameters through Foreman, confdroid_nagios::params must be added to the host or host group in question.

+

In order to apply parameters through Foreman, *confdroid_nagios::params- must be added to the host or host group in question.

See more details about class deployment on Confdroid.com.

@@ -140,7 +140,7 @@

Tests

diff --git a/doc/puppet_classes/confdroid_nagios_3A_3Amain_3A_3Auser.html b/doc/puppet_classes/confdroid_nagios_3A_3Amain_3A_3Auser.html index 733de7b..56bc2da 100644 --- a/doc/puppet_classes/confdroid_nagios_3A_3Amain_3A_3Auser.html +++ b/doc/puppet_classes/confdroid_nagios_3A_3Amain_3A_3Auser.html @@ -108,7 +108,27 @@ 10 11 12 -13 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33
# File 'manifests/main/user.pp', line 6
@@ -118,7 +138,27 @@ class confdroid_nagios::main::user (
 ) inherits confdroid_nagios::params {
   if $ng_nagios_server == $fqdn {
     require confdroid_nagios::main::install
-    #config here
+
+    group { $ng_user:
+    ensure    => present,
+    name      => $ng_user,
+    gid       => $ng_u_uid,
+    allowdupe => false,
+  }
+
+    user { $ng_user:
+      ensure     => present,
+      name       => $ng_user,
+      allowdupe  => false,
+      comment    => $ng_u_comment,
+      uid        => $ng_u_uid,
+      gid        => $ng_user,
+      groups     => $ng_u_groups,
+      managehome => true,
+      home       => $ng_user_home,
+      shell      => $ng_user_shell,
+      require    => Group[$ng_user],
+    }
   }
 }