Last change
on this file since 766 was
746,
checked in by josx@…, 14 years ago
|
Agregando modulo para el cliente/agente ocsinventory
|
File size:
623 bytes
|
Line | |
---|
1 | class ocsinventory::client { |
---|
2 | |
---|
3 | package { [ "ocsinventory-agent" ]: ensure => installed } |
---|
4 | |
---|
5 | file { "/etc/ocsinventory/ocsinventory-agent.cfg": |
---|
6 | owner => "root", |
---|
7 | group => "root", |
---|
8 | mode => 644, |
---|
9 | content => template("ocsinventory/ocsinventory-agent.erb"), |
---|
10 | require => Package["ocsinventory-agent"] |
---|
11 | } |
---|
12 | |
---|
13 | exec { "agente": |
---|
14 | command => "ocsinventory-agent", |
---|
15 | path => "/bin:/sbin:/usr/sbin:/usr/bin", |
---|
16 | refreshonly => true, |
---|
17 | subscribe => file["/etc/ocsinventory/ocsinventory-agent.cfg"], |
---|
18 | require => Package["ocsinventory-agent"] |
---|
19 | } |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.