...
 
Commits (6)
......@@ -11,17 +11,9 @@
private: no
default: "notoken"
- 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:
- prompt_computername
- prompt_slapostoken
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......
......@@ -2,10 +2,6 @@
hosts: 127.0.0.1
connection: local
vars:
- computer_name: noname
- slapostoken: notoken
vars_files:
- settings/gnet.yml
......
......@@ -5,18 +5,9 @@
vars_files:
- settings/imt.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:
- prompt_computername
- prompt_slapostoken
- { role: imt-slapos, mount_directory: /virt }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......
- name: Install packages using apt
- name: Install {{ package_name }} using apt
apt: name={{ package_name }} state={{ package_state }} update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian" or ansible_os_family == "Linuxmint"
- name: Install re6stnet on CentOS
- name: Install {{ package_name }} using yum
yum: name={{ package_name }} state={{ package_state }} update_cache=yes
when: ansible_os_family == "RedHat"
---
- name: "Your Computer Name"
pause: prompt="Please input the computer name please..."
register: computer_name_input
- set_fact: computer_name={{ computer_name_input.user_input }}
when: computer_name_input.user_input
---
- name: "Your Re6stnet Token"
pause: prompt="Input your re6stnet token..."
register: re6sttoken_input
- set_fact: re6sttoken={{ re6sttoken_input.user_input }}
when: re6sttoken_input.user_input
---
- name: "Your SlapOS token"
pause: prompt="Please slapostoken name please..."
register: slapostoken_input
- set_fact: slapostoken={{ slapostoken_input.user_input }}
when: slapostoken_input.user_input
......@@ -10,37 +10,21 @@
- file: path=/etc/apt/sources.list.d/re6stnet.list state=absent
when: ansible_distribution == "Debian"
- name: Install Debian 8 repository key
apt_key: url={{ base_open_build_url }}/Debian_8.0/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
- name: Install Debian 7 repository key
apt_key: url={{ base_open_build_url }}/Debian_7.0/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install Debian 6 repository key
apt_key: url={{ base_open_build_url }}/Debian_6.0/Release.key state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
- name: Install Debian 8 repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_8.0/ ./' state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
- name: Install Debian 7 repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_7.0/ ./' state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "7"
- name: Install Debian {{ ansible_distribution_major_version }} repository key
apt_key: url={{ base_open_build_url }}/Debian_{{ ansible_distribution_major_version }}.0/Release.key state=present
when: ansible_distribution == "Debian"
- name: Install Debian 6 repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_6.0/ ./' state=present
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "6"
- name: Install Debian {{ ansible_distribution_major_version }} repository
apt_repository: repo='deb {{ base_open_build_url }}/Debian_{{ ansible_distribution_major_version }}.0/ ./' state=present
when: ansible_distribution == "Debian"
- name: Install Ubuntu 14.04 repository key
- name: Install Ubuntu {{ ansible_distribution_version }} repository key
apt_key: url={{ base_open_build_url }}/xUbuntu_14.04/Release.key state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "14.04"
when: ansible_distribution == "Ubuntu"
- name: Install Ubuntu 14.04 repository
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_14.04/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "14.04"
- name: Install Ubuntu {{ ansible_distribution_version }} repository
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_{{ ansible_distribution_version }}/ ./' state=present
when: ansible_distribution == "Ubuntu"
- name: Install Ubuntu 14.04 repository key (Linuxmint 17.2)
apt_key: url={{ base_open_build_url }}/xUbuntu_14.04/Release.key state=present
......@@ -50,22 +34,6 @@
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_14.04/ ./' state=present
when: ansible_distribution == "Linuxmint" and ansible_distribution_version == "17.2"
- name: Install Ubuntu 15.04 repository key
apt_key: url={{ base_open_build_url }}/xUbuntu_15.04/Release.key state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "15.04"
- name: Install Ubuntu 15.04 repository
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_15.04/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "15.04"
- name: Install Ubuntu 16.04 repository key
apt_key: url={{ base_open_build_url }}/xUbuntu_16.04/Release.key state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
- name: Install Ubuntu 16.04 repository
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_16.04/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
- name: Install CentOS 7 Repository
get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
......@@ -81,3 +49,4 @@
- name: Install CentOS 6 RPM Key
rpm_key: state=present key=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_CentOS-6/repodata/repomd.xml.key
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "6"
......@@ -4,3 +4,6 @@ slapos_master_url: https://slap.grandenet.cn/
slapos_web_master_url: https://slapos.grandenet.cn/
interface_name: lo
re6st_annon: False
computer_name: noname
slapostoken: noname
re6sttoken: noname
......@@ -4,3 +4,6 @@ slapos_master_url: https://slap.imt.vifib.com/
slapos_web_master_url: https://slapos.tl.teralab-datascience.fr/
interface_name: lo
re6st_annon: False
computer_name: noname
slapostoken: noname
re6stnettoken: noname
......@@ -5,3 +5,5 @@ slapos_web_master_url: https://slapos.vifib.com/
interface_name: lo
re6st_annon: True
re6sttoken: noname
computer_name: noname
slapostoken: noname
......@@ -8,19 +8,9 @@
vars:
interface_name: eth0
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:
- prompt_computername
- prompt_slapostoken
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
- vifib-team-ssh-key
......@@ -5,19 +5,8 @@
vars_files:
- settings/vifib.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:
- prompt_computername
- prompt_slapostoken
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......@@ -9,18 +9,9 @@
- settings/vifib.yml
- settings/upgrader.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:
- prompt_computername
- prompt_slapostoken
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......
......@@ -2,14 +2,11 @@
hosts: 127.0.0.1
connection: local
vars:
- computer_name: noname
- slapostoken: notoken
vars_files:
- settings/vifib.yml
roles:
- repository
- ntp
- { role: package, package_name: lm-sensors, package_state: latest }
- { role: package, package_name: wget, package_state: latest }
......
......@@ -9,18 +9,9 @@
- settings/vifib.yml
- settings/upgrader.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:
- prompt_computername
- prompt_slapostoken
- { role: re6stnet, package_state: present }
- { role: slapos, package_state: present }
- { role: package, package_name: ntp, package_state: present }
......