Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glpi:
- pkg.installed:
- - pkg: glpi
- require:
- - pkg.installed:
- - pkgs: [mysql-server, apache2, php5]
- file.managed:
- - name: '/tmp'
- - source: 'salt://tars/glpi-massocsimport-1.6.1.tar.gz'
- - user: root
- - group: root
- cmd.run:
- - name: 'cd /tmp; tar xfv glpi-massocsimport-1.6.1.tar.gz; cp -R massocsimport /usr/share/glpi/plugins;chown www-data:www-data /usr/share/glpi/plugins/*; chmod -R +x /usr/share/glpi/plugins/massocsimport;/usr/share/glpi/plugins/massocsimport/scripts/ocsng_fullsync.sh; rm -f /tmp/glpi-massocsimport-1.6.1.tar.gz'
- cron.present:
- - name: '/usr/share/glpi/plugins/massocsimport/scripts/ocsng_fullsync.sh'
- - user: root
- - minute: 30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement