Permalink
Browse files

ocsinventory: tag option added to client

  • Loading branch information...
1 parent 26939ae commit 70edfd17f53b9e7e9740ac79340aa9b1b8dd4737 @daks committed Mar 28, 2012
View
2 ocsinventory/README
@@ -20,3 +20,5 @@ ocsinventory::agent
ocs_server (mandatory):
the ocsinventory server to send inventories
+ ocs_tag (optional):
+ a tag for ocsinventory client
View
5 ocsinventory/manifests/init.pp
@@ -9,6 +9,11 @@
ensure => installed,
}
+
+ $tag = $ocs_tag ? {
+ undef => '',
+ default => "$ocs_tag",
+ }
file { "/etc/ocsinventory/ocsinventory-agent.cfg":
ensure => present,
content => template("ocsinventory/ocsinventory-agent.cfg.erb"),
View
1 ocsinventory/templates/ocsinventory-agent.cfg.erb
@@ -6,3 +6,4 @@
# module ocsinventory
server=<%= ocs_server %>
+<% if tag != '' %>tag=<%= tag %><% end %>
View
1 snmp/manifests/server.pp
@@ -17,6 +17,7 @@
"puppet:///files/${domain}/etc/snmp/snmpd.conf",
"puppet:///files/global/etc/snmp/snmpd.conf",
],
+ notify => Service["${snmp::params::srv_name}"],
}
service { "${snmp::params::srv_name}":

0 comments on commit 70edfd1

Please sign in to comment.