Ales Komarek | ef98269 | 2016-02-21 14:56:07 +0100 | [diff] [blame] | 1 | |
| 2 | ================== |
smolaon | 552ba58 | 2016-02-23 20:35:42 +0100 | [diff] [blame] | 3 | Metal as a Service |
Ales Komarek | ef98269 | 2016-02-21 14:56:07 +0100 | [diff] [blame] | 4 | ================== |
| 5 | |
| 6 | Service maas description |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | Single maas service |
| 12 | |
| 13 | .. code-block:: yaml |
| 14 | |
| 15 | maas: |
| 16 | server: |
| 17 | enabled: true |
| 18 | |
Ondrej Smola | 9af2b08 | 2016-08-25 17:37:29 +0200 | [diff] [blame] | 19 | Single MAAS region service [single UI/API] |
| 20 | |
| 21 | .. code-block:: yaml |
| 22 | |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 23 | maas: |
Damian Szeluga | 336ff2e | 2017-03-30 11:19:34 +0200 | [diff] [blame] | 24 | salt_master_ip: 192.168.0.10 |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 25 | region: |
Jiri Broulik | 0df14bc | 2017-08-07 10:01:55 +0200 | [diff] [blame] | 26 | upstream_proxy: |
| 27 | address: 10.0.0.1 |
| 28 | port: 8080 |
Ondrej Smola | 3ffb631 | 2017-09-22 17:13:10 +0200 | [diff] [blame] | 29 | user: username #OPTIONAL |
| 30 | password: password #OPTIONAL |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 31 | theme: mirantis |
| 32 | bind: |
| 33 | host: 192.168.0.10:5240 |
| 34 | port: 5240 |
| 35 | admin: |
| 36 | username: exampleuser |
| 37 | password: examplepassword |
| 38 | email: email@example.com |
| 39 | database: |
| 40 | engine: null |
| 41 | host: localhost |
| 42 | name: maasdb |
| 43 | password: qwqwqw |
| 44 | username: maas |
| 45 | enabled: true |
| 46 | user: mirantis |
| 47 | token: "89EgtWkX45ddjMYpuL:SqVjxFG87Dr6kVf4Wp:5WLfbUgmm9XQtJxm3V2LUUy7bpCmqmnk" |
| 48 | fabrics: |
| 49 | test-fabric: |
| 50 | description: Test fabric |
| 51 | subnets: |
| 52 | subnet1: |
| 53 | fabric: test-fabric |
| 54 | cidr: 2.2.3.0/24 |
| 55 | gateway_ip: 2.2.3.2 |
| 56 | iprange: |
| 57 | start: 2.2.3.20 |
| 58 | end: 2.2.3.250 |
| 59 | dhcp_snippets: |
| 60 | test-snippet: |
| 61 | value: option bootfile-name "tftp://192.168.0.10/snippet"; |
| 62 | description: Test snippet |
| 63 | enabled: true |
| 64 | subnet: subnet1 |
| 65 | boot_resources: |
| 66 | bootscript1: |
| 67 | title: bootscript |
| 68 | architecture: amd64/generic |
| 69 | filetype: tgz |
| 70 | content: /srv/salt/reclass/nodes/path_to_file |
| 71 | package_repositories: |
| 72 | Saltstack: |
| 73 | url: http://repo.saltstack.com/apt/ubuntu/14.04/amd64/2016.3/ |
| 74 | distributions: |
| 75 | - trusty |
| 76 | components: |
| 77 | - main |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 78 | arches: amd64 |
| 79 | key: "-----BEGIN PGP PUBLIC KEY BLOCK----- |
| 80 | Version: GnuPG v2 |
Pavel Cizinsky | 5a6e272 | 2016-08-31 15:58:13 +0200 | [diff] [blame] | 81 | |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 82 | mQENBFOpvpgBCADkP656H41i8fpplEEB8IeLhugyC2rTEwwSclb8tQNYtUiGdna9 |
| 83 | m38kb0OS2DDrEdtdQb2hWCnswxaAkUunb2qq18vd3dBvlnI+C4/xu5ksZZkRj+fW |
| 84 | tArNR18V+2jkwcG26m8AxIrT+m4M6/bgnSfHTBtT5adNfVcTHqiT1JtCbQcXmwVw |
| 85 | WbqS6v/LhcsBE//SHne4uBCK/GHxZHhQ5jz5h+3vWeV4gvxS3Xu6v1IlIpLDwUts |
| 86 | kT1DumfynYnnZmWTGc6SYyIFXTPJLtn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ggA08kEdBkiWWwJZUZEy7cK |
| 102 | WWcgjnRuOHd4rPeT+vQbOWGu6x4bxuVf9aTiYkf7ZjVF2lPn97EXOEGFWPZeZbH4 |
| 103 | vdRFH9jMtP+rrLt6+3c9j0M8SIJYwBL1+CNpEC/BuHj/Ra/cmnG5ZNhYebm76h5f |
| 104 | T9iPW9fFww36FzFka4VPlvA4oB7ebBtquFg3sdQNU/MmTVV4jPFWXxh4oRDDR+8N |
| 105 | 1bcPnbB11b5ary99F/mqr7RgQ+YFF0uKRE3SKa7a+6cIuHEZ7Za+zhPaQlzAOZlx |
| 106 | fuBmScum8uQTrEF5+Um5zkwC7EXTdH1co/+/V/fpOtxIg4XO4kcugZefVm5ERfVS |
| 107 | MA== |
| 108 | =dtMN |
| 109 | -----END PGP PUBLIC KEY BLOCK-----" |
| 110 | enabled: true |
| 111 | machines: |
| 112 | machine1: |
Petr Ruzicka | 5fe9674 | 2017-11-10 14:22:24 +0100 | [diff] [blame^] | 113 | interface: |
Maciej Relewicz | 37b12a2 | 2017-04-25 15:23:16 +0200 | [diff] [blame] | 114 | mac: "11:22:33:44:55:66" |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 115 | power_parameters: |
| 116 | power_type: ipmi |
| 117 | power_address: '192.168.10.10' |
| 118 | power_user: bmc_user |
| 119 | power_password: bmc_password |
Ondrej Smola | 455003c | 2017-06-01 22:53:39 +0200 | [diff] [blame] | 120 | #Optional (for legacy HW) |
| 121 | power_driver: LAN |
Petr Ruzicka | 5fe9674 | 2017-11-10 14:22:24 +0100 | [diff] [blame^] | 122 | # Used in case of power_type: virsh |
| 123 | power_id: my_libvirt_vm_name |
Maciej Relewicz | 37b12a2 | 2017-04-25 15:23:16 +0200 | [diff] [blame] | 124 | distro_series: xenial |
| 125 | hwe_kernel: hwe-16.04 |
Damian Szeluga | a824810 | 2017-03-16 08:48:51 +0100 | [diff] [blame] | 126 | devices: |
| 127 | machine1-ipmi: |
| 128 | interface: |
| 129 | ip_address: 192.168.10.10 |
| 130 | subnet: cidr:192.168.10.0/24 |
| 131 | mac: '66:55:44:33:22:11' |
Damian Szeluga | 336ff2e | 2017-03-30 11:19:34 +0200 | [diff] [blame] | 132 | commissioning_scripts: |
| 133 | 00-maas-06-create-raid.sh: /srv/salt/reclass/scripts/commisioning_script.sh |
| 134 | maas_config: |
| 135 | domain: mydomain.local |
| 136 | http_proxy: http://192.168.0.10:3142 |
| 137 | commissioning_distro_series: xenial |
| 138 | default_distro_series: xenial |
| 139 | default_osystem: 'ubuntu' |
| 140 | default_storage_layout: lvm |
| 141 | disk_erase_with_secure_erase: true |
| 142 | dnssec_validation: 'no' |
| 143 | enable_third_party_drivers: true |
| 144 | maas_name: cfg01 |
| 145 | network_discovery: 'enabled' |
| 146 | active_discovery_interval: '600' |
| 147 | ntp_external_only: true |
| 148 | ntp_servers: 10.10.11.23 10.10.11.24 |
| 149 | upstream_dns: 192.168.12.13 |
| 150 | enable_http_proxy: true |
| 151 | default_min_hwe_kernel: '' |
| 152 | sshprefs: |
| 153 | - 'ssh-rsa ASDFOSADFISdfasdfasjdklfjasdJFASDJfASdf923@AAAAB3NzaC1yc2EAAAADAQABAAACAQCv8ISOESGgYUOycYw1SAs/SfHTqtSCTephD/7o2+mEZO53xN98sChiFscFaPA2ZSMoZbJ6MQLKcWKMK2OaTdNSAvn4UE4T6VP0ccdumHDNRwO3f6LptvXr9NR5Wocz2KAgptk+uaA8ytM0Aj9NT0UlfjAXkKnoKyNq6yG+lx4HpwolVaFSlqRXf/iuHpCrspv/u1NW7ReMElJoXv+0zZ7Ow0ZylISdYkaqbV8QatCb17v1+xX03xLsZigfugce/8CDsibSYvJv+Hli5CCBsKgfFqLy4R5vGxiLSVzG/asdjalskjdlkasjdasd/asdajsdkjalaksdjfasd/fa/sdf/asd/fas/dfsadf blah@blah' |
Ondrej Smola | 9af2b08 | 2016-08-25 17:37:29 +0200 | [diff] [blame] | 154 | |
| 155 | |
Richard Felkl | ce118a2 | 2017-09-13 11:09:12 +0200 | [diff] [blame] | 156 | Usage of local repos |
| 157 | |
| 158 | .. code-block:: yaml |
| 159 | maas: |
| 160 | cluster: |
| 161 | enabled: true |
| 162 | region: |
| 163 | port: 80 |
| 164 | host: localhost |
| 165 | saltstack_repo_key: | |
| 166 | -----BEGIN PGP PUBLIC KEY BLOCK----- |
| 167 | Version: GnuPG v2 |
| 168 | |
| 169 | mQENBFOpvpgBCADkP656H41i8fpplEEB8IeLhugyC2rTEwwSclb8tQNYtUiGdna9 |
| 170 | m38kb0OS2DDrEdtdQb2hWCnswxaAkUunb2qq18vd3dBvlnI+C4/xu5ksZZkRj+fW |
| 171 | tArNR18V+2jkwcG26m8AxIrT+m4M6/bgnSfHTBtT5adNfVcTHqiT1JtCbQcXmwVw |
| 172 | WbqS6v/LhcsBE//SHne4uBCK/GHxZHhQ5jz5h+3vWeV4gvxS3Xu6v1IlIpLDwUts |
| 173 | kT1DumfynYnnZmWTGc6SYyIFXTPJLtnoWDb9OBdWgZxXfHEcBsKGha+bXO+m2tHA |
| 174 | gNneN9i5f8oNxo5njrL8jkCckOpNpng18BKXABEBAAG0MlNhbHRTdGFjayBQYWNr |
| 175 | YWdpbmcgVGVhbSA8cGFja2FnaW5nQHNhbHRzdGFjay5jb20+iQE4BBMBAgAiBQJT |
| 176 | qb6YAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRAOCKFJ3le/vhkqB/0Q |
| 177 | WzELZf4d87WApzolLG+zpsJKtt/ueXL1W1KA7JILhXB1uyvVORt8uA9FjmE083o1 |
| 178 | yE66wCya7V8hjNn2lkLXboOUd1UTErlRg1GYbIt++VPscTxHxwpjDGxDB1/fiX2o |
| 179 | nK5SEpuj4IeIPJVE/uLNAwZyfX8DArLVJ5h8lknwiHlQLGlnOu9ulEAejwAKt9CU |
| 180 | 4oYTszYM4xrbtjB/fR+mPnYh2fBoQO4d/NQiejIEyd9IEEMd/03AJQBuMux62tjA |
| 181 | /NwvQ9eqNgLw9NisFNHRWtP4jhAOsshv1WW+zPzu3ozoO+lLHixUIz7fqRk38q8Q |
| 182 | 9oNR31KvrkSNrFbA3D89uQENBFOpvpgBCADJ79iH10AfAfpTBEQwa6vzUI3Eltqb |
| 183 | 9aZ0xbZV8V/8pnuU7rqM7Z+nJgldibFk4gFG2bHCG1C5aEH/FmcOMvTKDhJSFQUx |
| 184 | uhgxttMArXm2c22OSy1hpsnVG68G32Nag/QFEJ++3hNnbyGZpHnPiYgej3FrerQJ |
| 185 | zv456wIsxRDMvJ1NZQB3twoCqwapC6FJE2hukSdWB5yCYpWlZJXBKzlYz/gwD/Fr |
| 186 | GL578WrLhKw3UvnJmlpqQaDKwmV2s7MsoZogC6wkHE92kGPG2GmoRD3ALjmCvN1E |
| 187 | PsIsQGnwpcXsRpYVCoW7e2nW4wUf7IkFZ94yOCmUq6WreWI4NggRcFC5ABEBAAGJ |
| 188 | AR8EGAECAAkFAlOpvpgCGwwACgkQDgihSd5Xv74/NggA08kEdBkiWWwJZUZEy7cK |
| 189 | WWcgjnRuOHd4rPeT+vQbOWGu6x4bxuVf9aTiYkf7ZjVF2lPn97EXOEGFWPZeZbH4 |
| 190 | vdRFH9jMtP+rrLt6+3c9j0M8SIJYwBL1+CNpEC/BuHj/Ra/cmnG5ZNhYebm76h5f |
| 191 | T9iPW9fFww36FzFka4VPlvA4oB7ebBtquFg3sdQNU/MmTVV4jPFWXxh4oRDDR+8N |
| 192 | 1bcPnbB11b5ary99F/mqr7RgQ+YFF0uKRE3SKa7a+6cIuHEZ7Za+zhPaQlzAOZlx |
| 193 | fuBmScum8uQTrEF5+Um5zkwC7EXTdH1co/+/V/fpOtxIg4XO4kcugZefVm5ERfVS |
| 194 | MA== |
| 195 | =dtMN |
| 196 | -----END PGP PUBLIC KEY BLOCK----- |
| 197 | saltstack_repo_xenial: "http://${_param:local_repo_url}/ubuntu-xenial stable salt" |
| 198 | saltstack_repo_trusty: "http://${_param:local_repo_url}/ubuntu-trusty stable salt" |
| 199 | |
Ondrej Smola | 9af2b08 | 2016-08-25 17:37:29 +0200 | [diff] [blame] | 200 | Single MAAS cluster service [multiple racks] |
| 201 | |
| 202 | .. code-block:: yaml |
| 203 | |
| 204 | maas: |
| 205 | cluster: |
| 206 | enabled: true |
Jakub Pavlik | f43512b | 2016-08-30 10:25:42 +0200 | [diff] [blame] | 207 | role: master/slave |
Ondrej Smola | 9af2b08 | 2016-08-25 17:37:29 +0200 | [diff] [blame] | 208 | |
Ales Komarek | ef98269 | 2016-02-21 14:56:07 +0100 | [diff] [blame] | 209 | Read more |
| 210 | ========= |
| 211 | |
Roald Nefs | c86d84a | 2017-10-12 21:19:50 +0200 | [diff] [blame] | 212 | * https://maas.io/ |
Filip Pytloun | c07d235 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 213 | |
| 214 | Documentation and Bugs |
| 215 | ====================== |
| 216 | |
| 217 | To learn how to install and update salt-formulas, consult the documentation |
| 218 | available online at: |
| 219 | |
| 220 | http://salt-formulas.readthedocs.io/ |
| 221 | |
| 222 | In the unfortunate event that bugs are discovered, they should be reported to |
| 223 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 224 | formula: |
| 225 | |
| 226 | https://github.com/salt-formulas/salt-formula-maas/issues |
| 227 | |
| 228 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 229 | use Launchpad salt-formulas project: |
| 230 | |
| 231 | https://launchpad.net/salt-formulas |
| 232 | |
| 233 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 234 | |
| 235 | https://launchpad.net/~salt-formulas-users |
| 236 | |
| 237 | Developers wishing to work on the salt-formulas projects should always base |
| 238 | their work on master branch and submit pull request against specific formula. |
| 239 | |
| 240 | https://github.com/salt-formulas/salt-formula-maas |
| 241 | |
| 242 | Any questions or feedback is always welcome so feel free to join our IRC |
| 243 | channel: |
| 244 | |
| 245 | #salt-formulas @ irc.freenode.net |