Remove chattr

Now that we create the file at boot time, it's not important that it
be immutable.

Change-Id: I06c60f61f51b791b7006983572b868c6d4459c68
This commit is contained in:
Monty Taylor 2014-04-28 07:50:18 -07:00
parent 3f4001cec8
commit bdcd4ed440
2 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -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',