diff --git a/ansible/host_vars/iot/main.yml b/ansible/host_vars/iot/main.yml new file mode 100644 index 0000000..d3129d6 --- /dev/null +++ b/ansible/host_vars/iot/main.yml @@ -0,0 +1,42 @@ +--- +ssh_users_root: + - equinox + - nicoo + - gebi + +#sshd_allowusers_host: +# - ... + +# SSH configuration +## There are no individual user accounts +localconfig_ssh_config_user: root + +# VM installation +vm_host: alfred + +install: + host: "{{ vm_host }}" + mem: 2048 + numcpu: 2 + disks: + primary: /dev/vda + virtio: + vda: + vg: "{{ vm_host }}" + lv: "{{ inventory_hostname }}" + size: 10g + interfaces: + - bridge: "{{ hostvars[vm_host].vm_host.network.interface }}" + name: mgmt0 + autostart: True + +network: + nameservers: "{{ hostvars[vm_host].vm_host.network.nameservers }}" + domain: realraum.at + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: + interface: mgmt0 + ip: "{{ (hostvars[vm_host].vm_host.network.ip+'/'+hostvars[vm_host].vm_host.network.mask) | ipaddr(hostvars[vm_host].vm_host.network.indices[inventory_hostname]) | ipaddr('address') }}" + mask: "{{ hostvars[vm_host].vm_host.network.mask }}" + gateway: "{{ hostvars[vm_host].vm_host.network.gateway | default(hostvars[vm_host].vm_host.network.ip) }}" diff --git a/ansible/host_vars/iot/vault.yml b/ansible/host_vars/iot/vault.yml new file mode 100644 index 0000000..01d6bd1 --- /dev/null +++ b/ansible/host_vars/iot/vault.yml @@ -0,0 +1,42 @@ +$ANSIBLE_VAULT;1.1;AES256 +38636639306132346662393934636139306437643030363138346634373038636466616637313462 +6433386564633934333433613962356437333731656365370a356166623330323438313432376233 +38386131326435313536633730666238643637653961326661626230353339323463306337366362 +3137666461633566610a656233376135396663346237343435616538636334303563363762663034 +66336637636133316366626539353063353263376664346165636435643433376630356664303330 +30623237613564616366656161343463616136313137616163666263626331383265323837323034 +32396435306338653766316565396365326562656334643464336534303662356565653465303831 +32383130333839376135663639333236303838306539333132313061366136663837313139373863 +31613434396438303763646330383337346664636130396532616435626536643435363530343264 +63376161646235386361623565393234393032353934363666326561646631653331363862306139 +34323534343630343162633865623064353461653365303735353334316461333466363431616632 +61333234363534633732383031363033383734383238623466626162313230383137616266633565 +31313066343765626634356138626466613239303765376334353434303664323538386136336363 +65306633386430306435623136653332316239376232363139323066303632393162393236656331 +36393632333139303236373433643634393763396131386133653030643130653165373130376566 +66613862363165643166663735343130366535303438623834366361666238353836636430363432 +34373139373937353764633564326165633165363539636364323865323430353630393937333233 +65623839643564346330383162653161366466613464356532666437373039353162313030356630 +39393732643332323666303164626431343231323664343134626462353063356539613034326364 +31633138333234393862613338323831356662303538303035356233396431656261313264636336 +61363638313764393761636432353336316333656263663965363036363336313931643130663833 +32636530393131633962636463613634633632386634393532353262616538643135393131313863 +38393165343638333361313665393633646563343565303466363332613138653735333335383436 +31636566343465363137643061633038346436313831626665393838303036323336643736313036 +33373666333836333135346632633335653331613933663061626539386436366237616631343766 +33393431646562643838306266396335626166623531363962653761376461633462633836383362 +32626266326564313735333132616230613638636134343261396263646166356239353230373737 +66643238643934313533366565306332333239386230323335623235613136663737656333663365 +37333139656532333032363534326161313264356665646131396339636433323763613432653864 +38333161656232663332643334646365343632396534323463643634356631663633663138613264 +63653936313838646537323835666535333265316632383263333038343132626239353638633064 +38383330316663643265616531633766363237643739663762653236656166663866663030363633 +37616230303761633433383437356335383364366566643765383165373565363862353631366464 +32376537313137333838373434373666303962663264653739663739666139323830373834383961 +34633066353731366633616639663738633236343936313663313131383636393131306338383763 +34303662303039326636656464303635626234376334656631323536323264613831353530396136 +31363037613630326530343037643932616635383764333934376266623036323666363765383435 +32333033623636323163383730363565336132653063313265616261333730323633386261626131 +35363262373464366364383630316334376539303731633738316165386139336334613231663265 +35396132663763636237356533623337393763353464376332643865363064303462616231656235 +3862 diff --git a/ansible/hosts.ini b/ansible/hosts.ini index 8878b58..d74c3ea 100644 --- a/ansible/hosts.ini +++ b/ansible/hosts.ini @@ -49,6 +49,7 @@ hacksch metrics r3home testvm +iot [virtualservers-alfred:vars] vm_install_host = alfred