Commit 6d20819d authored by Rafael Monnerat's avatar Rafael Monnerat

Update

parent 2783387b
#!/bin/bash
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref=master
wget --no-check-certificate https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/base-setup -O /tmp/base-setup
source /tmp/base-setup
download_playbook $PLAYBOOK_REPOSITORY_URL
clear
echo "Staring ansible..."
ansible-playbook re6st.yml -i hosts --connection=local
#!/bin/bash
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref=master
wget --no-check-certificate https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/base-setup -O /tmp/base-setup
source /tmp/base-setup
download_playbook $PLAYBOOK_REPOSITORY_URL
clear
echo "Staring ansible..."
ansible-playbook site.yml -i hosts --connection=local
#!/bin/bash
PLAYBOOK_REPOSITORY_URL=https://lab.nexedi.cn/rafael/slapos.playbook/repository/archive.tar.gz?ref=master
wget --no-check-certificate https://lab.nexedi.cn/rafael/slapos.playbook/raw/master/install/base-setup -O /tmp/base-setup
source /tmp/base-setup
download_playbook $PLAYBOOK_REPOSITORY_URL
clear
echo "Staring ansible..."
ansible-playbook re6st.yml -i hosts --connection=local
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
vars_files:
- settings/gnet.yml
vars_prompt:
- name: "re6sttoken"
prompt: "If you have re6st token if you have (ignore if you already have a configured re6st):"
private: no
default: "notoken"
- name: "computer_name"
prompt: "What is this computer name? (ignore if you already have a configured re6st):"
private: no
default: "noname"
roles:
- re6stnet
- { role: package, package_name: ntp, package_state: present }
......@@ -2,15 +2,8 @@
hosts: 127.0.0.1
connection: local
vars:
re6st_registry_url: http://re6stnet.imt.vifib.com/
base_open_build_url: http://download.opensuse.org/repositories/home:/VIFIBnexedi/
package_dict:
re6st-node: latest
slapos-node: latest
slapos_master_url: https://slap.imt.vifib.com/
slapos_web_master_url: https://imt.vifib.com/
vars_files:
- settings/gnet.yml
vars_prompt:
- name: "re6sttoken"
......@@ -27,3 +20,9 @@
prompt: "If you have slapos token if you have (ignore if you already have a configured slapos):"
private: no
default: "notoken"
roles:
- re6stnet
- slapos
- { role: package, package_name: ntp, package_state: present }
---
base_open_build_url: http://download.opensuse.org/repositories/home:/VIFIBnexedi/
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
roles:
- { role: package, package_name: ntp, package_state: latest }
- { role: package, package_name: re6st-node, package_state: latest }
- { role: package, package_name: slapos-node, package_state: latest }
......@@ -2,16 +2,8 @@
hosts: 127.0.0.1
connection: local
vars:
re6st_registry_url: https://re6stnet.nexedi.com/
base_open_build_url: http://download.opensuse.org/repositories/home:/VIFIBnexedi/
package_list:
- re6st-node
- slapos-node
slapos_master_url: https://slap.vifib.com/
slapos_web_master_url: https://slapos.vifib.com/
vars_files:
- settings/imt.yml
vars_prompt:
- name: "re6sttoken"
......@@ -29,12 +21,8 @@
private: no
default: "notoken"
# tasks:
# - include: tasks/repository.yml
#
# - include: tasks/package.yml
#
# - include: tasks/re6stnet.yml
#
# - include: tasks/slapos.yml
#
roles:
- re6stnet
- slapos
- { role: package, package_name: ntp, package_state: present }
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
vars_files:
- settings/vifib.yml
vars_prompt:
- name: "re6sttoken"
prompt: "If you have re6st token if you have (ignore if you already have a configured re6st):"
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"
roles:
- re6stnet
- { role: package, package_name: ntp, package_state: present }
---
dependencies:
- { role: repository }
- name: Install packages using apt
apt: name={{ item.key }} state={{ item.value }} update_cache=yes cache_valid_time=3600
apt: name={{ package_name }} state={{ package_state }} update_cache=yes cache_valid_time=3600
when: ansible_os_family == "Debian"
with_dict: package_dict
- name: Install re6stnet on CentOS
yum: name={{ item.key }} state={{ item.value }}
yum: name={{ package_name }} state={{ package_state }} update_cache=yes
when: ansible_os_family == "RedHat"
with_dict: package_dict
---
dependencies:
- { role: package, package_name: re6st-node, package_state: present }
---
dependencies:
- { role: package, package_name: slapos-node, package_state: present }
---
re6st_registry_url: https://re6stnet.nexedi.com/
slapos_master_url: https://slap.vifib.com/
slapos_web_master_url: https://slapos.vifib.com/
---
re6st_registry_url: http://re6stnet.imt.vifib.com/
slapos_master_url: https://slap.imt.vifib.com/
slapos_web_master_url: https://imt.vifib.com/
---
re6st_registry_url: https://re6stnet.nexedi.com/
slapos_master_url: https://slap.vifib.com/
slapos_web_master_url: https://slapos.vifib.com/
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
vars_files:
- settings/vifib.yml
vars_prompt:
- name: "re6sttoken"
prompt: "If you have re6st token if you have (ignore if you already have a configured re6st):"
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:
- re6stnet
- slapos
- { role: package, package_name: ntp, package_state: present }
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