Skip to content
GitLab
Explore
Sign in
Register
Admin message
Gitlab has been updated. More info
here
and
there
.
Changes
Page history
Cloud: ajout script cloud-config pour mettre à jour centos automatiquement
authored
Sep 26, 2019
by
Aurélien Bailly-Reyre
Show whitespace changes
Inline
Side-by-side
Cloudatlpnhe.md
View page @
01f4bc2f
...
@@ -1226,3 +1226,47 @@ runcmd:
...
@@ -1226,3 +1226,47 @@ runcmd:
- cvmfs_config probe
- 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
```