Merge "Remove chattr"
This commit is contained in:
commit
159bb69ce9
@ -67,7 +67,6 @@ set -e
|
||||
set -o xtrace
|
||||
|
||||
echo 'nameserver 127.0.0.1' > /etc/resolv.conf
|
||||
chattr +i /etc/resolv.conf
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
|
@ -72,17 +72,6 @@ class unbound (
|
||||
notify => Exec['make-resolv-conf-immutable'],
|
||||
}
|
||||
|
||||
# Rackspace uses file injection to configure networking which
|
||||
# overwrites all of the files on disk where we could set the env
|
||||
# variable to disable the resolv.conf update on network-up.
|
||||
# Instead, make that file immutable so that the update will fail
|
||||
# (harmlessly). Of course this means Puppet won't be able to
|
||||
# update it either after this, but we don't plan on changing it.
|
||||
exec { 'make-resolv-conf-immutable':
|
||||
command => '/usr/bin/chattr +i /etc/resolv.conf',
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
service { 'unbound':
|
||||
ensure => running,
|
||||
name => 'unbound',
|
||||
|
Loading…
x
Reference in New Issue
Block a user