From 7a7f654494ce996d3abd2c753b98883da8d3d875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 10 Aug 2016 23:53:14 +0200 Subject: Add mirrorlist file, and remove root password --- modules/base_configuration/files/mirrorlist | 2 ++ modules/base_configuration/manifests/init.pp | 14 ++++++++++++++ modules/pacman | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 modules/base_configuration/files/mirrorlist (limited to 'modules') 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 @@ +Server = http://archlinux.mirrors.ovh.net/archlinux/$repo/os/$arch +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 ( } } + ensure_packages('ruby-shadow') + user { 'root': + password => '!' + } + + file { '/etc/pacman.d/mirrorlist': + ensure => "present", + path => "/etc/pacman.d/mirrorlist", + source => 'puppet:///modules/base_configuration/mirrorlist', + mode => "0644", + owner => "root", + group => "root" + } + class { 'pacman': color => true, usesyslog => true, diff --git a/modules/pacman b/modules/pacman index 1b42bd1..1e7de81 160000 --- a/modules/pacman +++ b/modules/pacman @@ -1 +1 @@ -Subproject commit 1b42bd156fd35c7736e155e3a8c456969a274ffa +Subproject commit 1e7de818c6b0cb91c4fd5c8127d9f20ba75998c5 -- cgit v1.2.3