... | ... | @@ -1226,3 +1226,47 @@ runcmd: |
|
|
- cvmfs_config probe
|
|
|
```
|
|
|
|
|
|
Mise à jours automatique de Centos
|
|
|
----------------------------------
|
|
|
|
|
|
Script permettant la mise à jour automatique de Centos. Les distributions Ubuntu et Debian se mettent à jour
|
|
|
automatiquement par défaut.
|
|
|
|
|
|
``` {.cloudCode .yaml}
|
|
|
#cloud-config
|
|
|
|
|
|
# Upgrade the instance OS packages on first boot
|
|
|
package_upgrade: true
|
|
|
|
|
|
# Add packages
|
|
|
packages:
|
|
|
- yum-cron
|
|
|
|
|
|
# Write config files
|
|
|
write_files:
|
|
|
- path: /etc/yum/yum-cron.conf
|
|
|
owner: root:root
|
|
|
permissions: '0644'
|
|
|
content: |
|
|
|
[commands]
|
|
|
update_cmd = default
|
|
|
update_messages = no
|
|
|
download_updates = yes
|
|
|
apply_updates = yes
|
|
|
random_sleep = 360
|
|
|
[emitters]
|
|
|
system_name = None
|
|
|
emit_via = stdio
|
|
|
output_width = 80
|
|
|
[email]
|
|
|
email_from = root@localhost
|
|
|
email_to = root
|
|
|
email_host = localhost
|
|
|
[groups]
|
|
|
group_list = None
|
|
|
group_package_types = mandatory, default
|
|
|
[base]
|
|
|
debuglevel = -2
|
|
|
mdpolicy = group:main
|
|
|
```
|
|
|
|