Use os-apply-config to create files under /etc/edeploy
This commit is contained in:
parent
233fc495c9
commit
7823d65bbb
@ -0,0 +1,5 @@
|
||||
[
|
||||
('disk', '$disk', 'size', 'gt(4)'),
|
||||
('network', '$eth', 'ipv4', 'network(192.0.2.0/24)'),
|
||||
('memory', 'total', 'size', 'ge(4294967296)'),
|
||||
]
|
@ -0,0 +1,5 @@
|
||||
[
|
||||
('disk', '$disk', 'size', 'gt(4)'),
|
||||
('network', '$eth', 'ipv4', 'network(192.0.2.0/24)'),
|
||||
('memory', 'total', 'size', 'ge(2147483648)'),
|
||||
]
|
@ -0,0 +1 @@
|
||||
[('compute', '*'), ('control', '1')]
|
@ -8,27 +8,5 @@ set -eux
|
||||
os-svc-enable -n openstack-ironic-discoverd-dnsmasq
|
||||
os-svc-enable -n openstack-ironic-discoverd
|
||||
|
||||
mkdir -p /etc/edeploy/
|
||||
|
||||
cat > /etc/edeploy/state <<EOF
|
||||
[('compute', '*'), ('control', '1')]
|
||||
EOF
|
||||
|
||||
cat > /etc/edeploy/compute.specs <<EOF
|
||||
[
|
||||
('disk', '\$disk', 'size', 'gt(4)'),
|
||||
('network', '\$eth', 'ipv4', 'network(192.0.2.0/24)'),
|
||||
('memory', 'total', 'size', 'ge(4294967296)'),
|
||||
]
|
||||
EOF
|
||||
|
||||
cat > /etc/edeploy/control.specs <<EOF
|
||||
[
|
||||
('disk', '\$disk', 'size', 'gt(4)'),
|
||||
('network', '\$eth', 'ipv4', 'network(192.0.2.0/24)'),
|
||||
('memory', 'total', 'size', 'ge(2147483648)'),
|
||||
]
|
||||
EOF
|
||||
|
||||
os-svc-restart -n openstack-ironic-discoverd-dnsmasq
|
||||
os-svc-restart -n openstack-ironic-discoverd
|
||||
|
Loading…
Reference in New Issue
Block a user