summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp13
1 files changed, 7 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b7765a5..e9f962a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,10 +1,11 @@
class henks_ircservices (
+ Array $networks
) {
- user {
- 'irc-services':
- ensure => present,
- managehome => true,
- password => '!',
- ;
+ $networks.each |$network| {
+ henks_ircservices::network {
+ $network['name']:
+ run_user => $network.dig('system_user').lest | | { "irc-services-${network['name']}" },
+ ;
+ }
}
}