-
-
Save whytewolf/b0887ceb472f92550df6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext: | |
salt.function: | |
- name: neutron.create_network | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- name=external | |
- router_ext=True | |
- segmentation_id=43 | |
- network_type=vlan | |
- physical_network=ex | |
ext-subnet: | |
salt.function: | |
- name: cmd.run | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- "neutron --os-username=admin --os-password=<password> --os-project-name=admin --os-project-domain-id=default --os-user-domain-id=default --os-auth-url 'http://ctrl:35357' subnet-create external 10.43.0.0/16 --name public --allocation-pool start=10.43.1.1,end=10.43.254.250 --disable-dhcp --gateway 10.43.0.1" | |
admin-network: | |
salt.function: | |
- name: neutron.create_network | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- name=admin | |
admin-subnet: | |
salt.function: | |
- name: neutron.create_subnet | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- name=admin | |
- network=admin | |
- 'cidr=172.16.1.0/8' | |
admin-router: | |
salt.function: | |
- name: neutron.create_router | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- name=admin_router | |
- ext_network=external | |
admin-router-subnet: | |
salt.function: | |
- name: neutron.add_interface_router | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- router=admin_router | |
- subnet=admin | |
secgrp-default-icmp: | |
salt.function: | |
- name: neutron.create_security_group_rule | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- security_group=default | |
- protocol=icmp | |
secgrp-default-ssh: | |
salt.function: | |
- name: neutron.create_security_group_rule | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- security_group=default | |
- protocol=TCP | |
- port_range_min=22 | |
- port_range_max=22 | |
secgrp-http: | |
salt.function: | |
- name: neutron.create_security_group | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- name=http | |
- description='http base rules' | |
secgrp-http-http: | |
salt.function: | |
- name: neutron.create_security_group_rule | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- security_group=http | |
- protocol=TCP | |
- port_range_min=80 | |
- port_range_max=80 | |
secgrp-http-https: | |
salt.function: | |
- name: neutron.create_security_group_rule | |
- tgt: 'roles:neutron' | |
- tgt_type: grain | |
- arg: | |
- security_group=http | |
- protocol=TCP | |
- port_range_min=443 | |
- port_range_max=443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment