| 1 | --- |
| 2 | config: |
| 3 | core.https_address: "{{lxd_cluster_ip|default('[::]')}}:8443" |
| 4 | {% if lxd_cluster_ip|default(false) %} |
| 5 | cluster.https_address: {{lxd_cluster_ip}}:8443 |
| 6 | {% endif %} |
| 7 | images.auto_update_interval: "0" |
| 8 | networks: [] |
| 9 | {% if lxd_cluster|default(false) %} |
| 10 | # Storage pools are configured per member |
| 11 | storage_pools: [] |
| 12 | {% else %} |
| 13 | - config: |
| 14 | source: tank/lxd |
| 15 | description: "" |
| 16 | name: default |
| 17 | driver: zfs |
| 18 | {% endif %} |
| 19 | profiles: |
| 20 | - config: |
| 21 | boot.autostart: "true" |
| 22 | user.vendor-data: |- |
| 23 | #cloud-config |
| 24 | manage_etc_hosts: True |
| 25 | packages: |
| 26 | - netplan.io |
| 27 | - openssh-server |
| 28 | runcmd: |
| 29 | - ['mkdir', '-p', '/root/.ssh'] |
| 30 | - "echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBnCyGcahJXys7md2yb3jP8L6hLN3D72aZCzsqUrJDsC\nssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHVFn/ymsG8LqPvgVzyMaSVzYCVn/440ME8O6AzbZG39' > /root/.ssh/authorized_keys" |
| 31 | description: "" |
| 32 | devices: |
| 33 | eth0: |
| 34 | name: eth0 |
| 35 | parent: br102 |
| 36 | nictype: bridged |
| 37 | network: '' |
| 38 | type: nic |
| 39 | root: |
| 40 | path: / |
| 41 | pool: default |
| 42 | type: disk |
| 43 | size: 100GB |
| 44 | name: default |
| 45 | - config: |
| 46 | boot.autostart: "true" |
| 47 | limits.cpu: "8" |
| 48 | limits.memory: "8192MB" |
| 49 | user.vendor-data: |- |
| 50 | #cloud-config |
| 51 | manage_etc_hosts: True |
| 52 | packages: |
| 53 | - netplan.io |
| 54 | - openssh-server |
| 55 | runcmd: |
| 56 | - ['mkdir', '-p', '/root/.ssh'] |
| 57 | - "echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBnCyGcahJXys7md2yb3jP8L6hLN3D72aZCzsqUrJDsC\nssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHVFn/ymsG8LqPvgVzyMaSVzYCVn/440ME8O6AzbZG39' > /root/.ssh/authorized_keys" |
| 58 | description: "CI node" |
| 59 | devices: |
| 60 | eth0: |
| 61 | name: eth0 |
| 62 | parent: br102 |
| 63 | nictype: bridged |
| 64 | network: '' |
| 65 | type: nic |
| 66 | root: |
| 67 | path: / |
| 68 | pool: default |
| 69 | type: disk |
| 70 | size: 80GB |
| 71 | name: ci-node |
| 72 | - config: |
| 73 | boot.autostart: "true" |
| 74 | limits.cpu: "8" |
| 75 | limits.memory: "8192MB" |
| 76 | security.secureboot: "false" |
| 77 | description: "CI root node (VM)" |
| 78 | devices: |
| 79 | eth0: |
| 80 | name: eth0 |
| 81 | parent: br102 |
| 82 | nictype: bridged |
| 83 | network: '' |
| 84 | type: nic |
| 85 | root: |
| 86 | path: / |
| 87 | pool: default |
| 88 | type: disk |
| 89 | size: 80GB |
| 90 | name: ci-rootnode |
| 91 | projects: [] |
| 92 | cluster: {{lxd_cluster|default(null)}} |