From 97aaba36f7221b32229dc96f33aafa45acd91d60 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 3 Aug 2017 13:58:00 +0000 Subject: Added basic julien policies --- services/common.cf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'services/common.cf') diff --git a/services/common.cf b/services/common.cf index 2cce6fd..8f93cc4 100644 --- a/services/common.cf +++ b/services/common.cf @@ -4,6 +4,7 @@ bundle agent common any:: "packages" slist => { @(flavour.packages), + @(julien.packages), @(specific.packages), }; files: @@ -29,3 +30,17 @@ bundle agent common "$(this.bundle): /etc/hosts repaired" ifvarclass => "common_hosts_files_repaired"; "$(this.bundle): $(packages) installed" ifvarclass => "common_packages_$(packages)_add_repaired"; } + +bundle agent home_skel(user) +{ + files: + any:: + "/home/$(user)/." + create => "true", + copy_from => seed_cp("/etc/skel"), + depth_search => recurse("inf"), + classes => if_repaired("home_skel_$(user)_repaired"); + reports: + any:: + "$(this.bundle): /home/$(user) initialized" ifvarclass => "home_skel_$(user)_repaired"; +} -- cgit v1.2.3