Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ocsinventory: tag option added to client

  • Loading branch information...
commit 70edfd17f53b9e7e9740ac79340aa9b1b8dd4737 1 parent 26939ae
Éric Veiras Galisson authored
2  ocsinventory/README
View
@@ -20,3 +20,5 @@ ocsinventory::agent
ocs_server (mandatory):
the ocsinventory server to send inventories
+ ocs_tag (optional):
+ a tag for ocsinventory client
5 ocsinventory/manifests/init.pp
View
@@ -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"),
1  ocsinventory/templates/ocsinventory-agent.cfg.erb
View
@@ -6,3 +6,4 @@
# module ocsinventory
server=<%= ocs_server %>
+<% if tag != '' %>tag=<%= tag %><% end %>
1  snmp/manifests/server.pp
View
@@ -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}":
Please sign in to comment.
Something went wrong with that request. Please try again.