EC2: Only install dhcpcd on releases before jessie

Otherwise, keep Debian's default isc-dhcp-client, it works fine
on EC2.
This commit is contained in:
Jonh Wendell 2015-06-17 09:49:58 -03:00
parent af1fd095e9
commit cd04b3a645

View file

@ -9,15 +9,13 @@ class DefaultPackages(Task):
@classmethod @classmethod
def run(cls, info): def run(cls, info):
info.packages.add('file') # Needed for the init scripts info.packages.add('file') # Needed for the init scripts
# isc-dhcp-client doesn't work properly with ec2
from bootstrapvz.common.releases import jessie
if info.manifest.release >= jessie:
info.packages.add('dhcpcd5')
else:
info.packages.add('dhcpcd')
info.exclude_packages.add('isc-dhcp-client') # isc-dhcp-client before jessie doesn't work properly with ec2
info.exclude_packages.add('isc-dhcp-common') from bootstrapvz.common.releases import jessie
if info.manifest.release < jessie:
info.packages.add('dhcpcd')
info.exclude_packages.add('isc-dhcp-client')
info.exclude_packages.add('isc-dhcp-common')
import os.path import os.path
kernel_packages_path = os.path.join(os.path.dirname(__file__), 'packages-kernels.yml') kernel_packages_path = os.path.join(os.path.dirname(__file__), 'packages-kernels.yml')