mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
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:
parent
af1fd095e9
commit
cd04b3a645
1 changed files with 6 additions and 8 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Reference in a new issue