diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-10 23:53:14 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-11 00:25:26 +0200 |
commit | 7a7f654494ce996d3abd2c753b98883da8d3d875 (patch) | |
tree | 31468fa8a9086eaccfdd3c2ee51e204ae121f793 /modules/base_configuration | |
parent | 2390cad785cc63d59eade9c819675e8699c58ef8 (diff) | |
download | Puppet-7a7f654494ce996d3abd2c753b98883da8d3d875.tar.gz Puppet-7a7f654494ce996d3abd2c753b98883da8d3d875.tar.zst Puppet-7a7f654494ce996d3abd2c753b98883da8d3d875.zip |
Add mirrorlist file, and remove root password
Diffstat (limited to 'modules/base_configuration')
-rw-r--r-- | modules/base_configuration/files/mirrorlist | 2 | ||||
-rw-r--r-- | modules/base_configuration/manifests/init.pp | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/base_configuration/files/mirrorlist b/modules/base_configuration/files/mirrorlist new file mode 100644 index 0000000..2ffca7c --- /dev/null +++ b/modules/base_configuration/files/mirrorlist | |||
@@ -0,0 +1,2 @@ | |||
1 | Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch | ||
2 | Server = http://mir.archlinux.fr/$repo/os/$arch | ||
diff --git a/modules/base_configuration/manifests/init.pp b/modules/base_configuration/manifests/init.pp index 8b4dd37..20bac33 100644 --- a/modules/base_configuration/manifests/init.pp +++ b/modules/base_configuration/manifests/init.pp | |||
@@ -63,6 +63,20 @@ class base_configuration ( | |||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | ensure_packages('ruby-shadow') | ||
67 | user { 'root': | ||
68 | password => '!' | ||
69 | } | ||
70 | |||
71 | file { '/etc/pacman.d/mirrorlist': | ||
72 | ensure => "present", | ||
73 | path => "/etc/pacman.d/mirrorlist", | ||
74 | source => 'puppet:///modules/base_configuration/mirrorlist', | ||
75 | mode => "0644", | ||
76 | owner => "root", | ||
77 | group => "root" | ||
78 | } | ||
79 | |||
66 | class { 'pacman': | 80 | class { 'pacman': |
67 | color => true, | 81 | color => true, |
68 | usesyslog => true, | 82 | usesyslog => true, |