diff options
author | binary <me@rgoncalves.se> | 2020-12-02 18:36:25 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-12-02 18:36:25 +0100 |
commit | c4edd14b8aaf65d1db86074b0109b89ae609d4b3 (patch) | |
tree | 94e123449ce228ce1bff2dcb701f72956b1ad72c /roles/vmm/tasks/generate_vmconf.yml | |
parent | 8478e90356b6738a13eed3878000d0e112074960 (diff) | |
download | infrastructure-c4edd14b8aaf65d1db86074b0109b89ae609d4b3.tar.gz |
Refactor based on bhyve setup
Diffstat (limited to 'roles/vmm/tasks/generate_vmconf.yml')
-rw-r--r-- | roles/vmm/tasks/generate_vmconf.yml | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/roles/vmm/tasks/generate_vmconf.yml b/roles/vmm/tasks/generate_vmconf.yml deleted file mode 100644 index e8f8245..0000000 --- a/roles/vmm/tasks/generate_vmconf.yml +++ /dev/null @@ -1,37 +0,0 @@ - -# vmm ~~ tasks/generate_vmconf.yml -# Generate vm.conf on hypervisor. - ---- - -- name: Start ip forwarding - shell: sysctl net.inet.ip{{ item }}.forwarding=1 - loop: - - "" - - "6" - -- name: Enable ip forwarding - lineinfile: - path: /etc/sysctl.conf - regexp: "^net.inet.ip{{ item }}.forwarding=" - line: "net.inet.ip{{ item }}.forwarding=1" - loop: - - "" - - "6" - -- name: Create network switch - shell: echo "add {{ hypervisor.interface }}" > /etc/hostname.{{ vmm.switch.iface }} - -- name: Start network switch - shell: "sh /etc/netstart {{ vmm.switch.iface }}" - -- name: Generate vmm configuration - template: - src: templates/vm.conf.j2 - dest: "{{ vmm.config_file }}" - -- name: Restart vmd - service: - name: vmd - state: restarted - enabled: true |