Commit 26a53f3b authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Add new scenario for vifib without re6st

This will be useful to setup machines where we already have IPv6 (for
example, VM with IPv6 coming from the host).
parent 5392b4ca
......@@ -41,6 +41,14 @@
copy: src=/etc/systemd/re6stnet.service dest=/etc/systemd/system/re6stnet.service
when: ansible_distribution == 'CentOS' and ansible_distribution_version >= '7' and re6stnet.stat.exists == True and re6stnode.stat.exists == False
- name: Check if ip6tables check script is present
stat: path=/usr/bin/re6stnet-ip6tables-check
register: ip6tables_check
- name: Run re6stnet-ip6tables-check
shell: /usr/bin/re6stnet-ip6tables-check
when: ip6tables_check.stat.exists == True
- include: daemon.yml
- name: Create centos 6 init.d missing file
......
......@@ -23,22 +23,6 @@
- include: kvm.yml
- include: shuttle-modprobe.yml
- name: Check if re6stnet is configured
stat: path=/etc/re6stnet/re6stnet.conf
register: re6stnet_conf
- name: Check if ip6tables check script is present
stat: path=/usr/bin/re6stnet-ip6tables-check
register: ip6tables_check
- name: Run re6stnet-ip6tables-check
shell: /usr/bin/re6stnet-ip6tables-check
when: ip6tables_check.stat.exists == True
- name: Start re6st-node service if not started
service: name=re6stnet state=started enabled=yes
when: re6stnet_conf.stat.exists == True
- name: Increase ulimit
shell: echo "TODO"
......
......@@ -13,7 +13,6 @@ dependencies:
- { role: package, package_name: slapos-node, package_state: latest }
- { role: package, package_name: re6st-node, package_state: latest }
- { role: package, package_name: apt, package_state: latest }
- { role: re6stnet }
- { role: etckeeper }
- { role: vifib-team-ssh-key }
- { role: vifib-server }
......
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
vars:
- upgrader_playbook: vifib-upgrade.yml
vars_files:
- settings/vifib.yml
- settings/upgrader.yml
- settings/slapos-master.yml
vars_prompt:
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st and slapos):"
private: no
default: "noname"
- name: "slapostoken"
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
- vifib-team-ssh-key
- upgrader
- vifib-server
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment