From d016e089180c74c3954a6294137efda560de1cb5 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 1 Feb 2017 10:29:52 +0100 Subject: [PATCH 1/2] Remove unused dependencies (#103) Using unattended-upgrades --- .infra/group_vars/all/_frey.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.infra/group_vars/all/_frey.yml b/.infra/group_vars/all/_frey.yml index fb94b97..2556281 100644 --- a/.infra/group_vars/all/_frey.yml +++ b/.infra/group_vars/all/_frey.yml @@ -8,7 +8,7 @@ apt_upgrade: false apt_dpkg_configure: true apt_install_state: present apt_clean: true -apt_autoremove: true +apt_autoremove: false # ansistrano roles ansistrano_shared_paths: @@ -29,3 +29,6 @@ hostname: "{{ fqdn.split('.')[0] }}" nodejs_yarn: false nodejs_npm_global_packages: - name: yarn + +# unattended-upgrades +unattended_remove_unused_dependencies: true From 63014c78ccd73c00394b6ce01edf502ab6409a5a Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 1 Feb 2017 10:46:36 +0100 Subject: [PATCH 2/2] Cleanup Frey file (#104) --- .infra/Freyfile.hcl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.infra/Freyfile.hcl b/.infra/Freyfile.hcl index e71eba9..91221cb 100644 --- a/.infra/Freyfile.hcl +++ b/.infra/Freyfile.hcl @@ -111,7 +111,22 @@ install { name = "Install tusd" roles { role = "{{{init.paths.roles_dir}}}/apt/1.4.0" - apt_install = ["apg", "build-essential", "curl", "git-core", "htop", "iotop", "libpcre3", "logtail", "mlocate", "mtr", "psmisc", "telnet", "vim", "wget"] + apt_install = [ + "apg", + "build-essential", + "curl", + "git-core", + "htop", + "iotop", + "libpcre3", + "logtail", + "mlocate", + "mtr", + "psmisc", + "telnet", + "vim", + "wget" + ] } roles { role = "{{{init.paths.roles_dir}}}/unattended-upgrades/1.3.1" @@ -167,7 +182,6 @@ setup { } roles { role = "{{{init.paths.roles_dir}}}/fqdn/1.2.1" - fqdn = "{{lookup('env', 'FREY_DOMAIN')}}" } tasks { file = "path=/mnt/tusd-data state=directory owner=www-data group=ubuntu mode=ug+rwX,o= recurse=yes"