summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/ocsinventory-agent/files')
-rw-r--r--app-admin/ocsinventory-agent/files/modules.conf10
-rw-r--r--app-admin/ocsinventory-agent/files/ocsinventory-agent.cfg1
-rw-r--r--app-admin/ocsinventory-agent/files/ocsinventory-agent.crond1
-rw-r--r--app-admin/ocsinventory-agent/files/ocsinventory-agent.service10
-rw-r--r--app-admin/ocsinventory-agent/files/ocsinventory-agent.timer11
5 files changed, 33 insertions, 0 deletions
diff --git a/app-admin/ocsinventory-agent/files/modules.conf b/app-admin/ocsinventory-agent/files/modules.conf
new file mode 100644
index 000000000000..7e3eb3fed7f6
--- /dev/null
+++ b/app-admin/ocsinventory-agent/files/modules.conf
@@ -0,0 +1,10 @@
+# this list of module will be loaded by the agent at run time
+# to check its syntax do:
+# $perl modules.conf
+# You must have NO error. Else the content will be ignored
+
+use Ocsinventory::Agent::Modules::Download;
+use Ocsinventory::Agent::Modules::Snmp;
+
+# DO NO REMOVE the 1;
+1;
diff --git a/app-admin/ocsinventory-agent/files/ocsinventory-agent.cfg b/app-admin/ocsinventory-agent/files/ocsinventory-agent.cfg
new file mode 100644
index 000000000000..30dec1a71c4f
--- /dev/null
+++ b/app-admin/ocsinventory-agent/files/ocsinventory-agent.cfg
@@ -0,0 +1 @@
+server=servername.yourdomain.com
diff --git a/app-admin/ocsinventory-agent/files/ocsinventory-agent.crond b/app-admin/ocsinventory-agent/files/ocsinventory-agent.crond
new file mode 100644
index 000000000000..66cb83335b7d
--- /dev/null
+++ b/app-admin/ocsinventory-agent/files/ocsinventory-agent.crond
@@ -0,0 +1 @@
+43 2 * * * root /usr/bin/ocsinventory-agent --lazy > /dev/null 2>&1
diff --git a/app-admin/ocsinventory-agent/files/ocsinventory-agent.service b/app-admin/ocsinventory-agent/files/ocsinventory-agent.service
new file mode 100644
index 000000000000..daf311e98c8a
--- /dev/null
+++ b/app-admin/ocsinventory-agent/files/ocsinventory-agent.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Cron job for OCS-Inventory agent
+After=network.target
+
+[Service]
+User=root
+ExecStart=/usr/bin/ocsinventory-agent --lazy
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-admin/ocsinventory-agent/files/ocsinventory-agent.timer b/app-admin/ocsinventory-agent/files/ocsinventory-agent.timer
new file mode 100644
index 000000000000..01dd060c8960
--- /dev/null
+++ b/app-admin/ocsinventory-agent/files/ocsinventory-agent.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Launch audit
+
+[Timer]
+OnCalendar=daily
+AccuracySec=1h
+RandomizedDelaySec=240
+Persistent=true
+
+[Install]
+WantedBy=timers.target