Commit e2923db2 authored by eric pellegrini's avatar eric pellegrini

added playbook for install multiservers jupyterhub sudospawner

parent 5feb1521
......@@ -203,7 +203,7 @@ os_keypairs:
identity_file: "~/.ssh/openstack/extra-cluster"
os_vms_commons:
keypair: "{{ os_keypairs[0]['name'] }}"
keypair: "{{ os_keypairs[1]['name'] }}"
network: "{{ os_networks['networks'][0]['name'] }}"
availability_zone: nova
security_groups: "{{ os_networks['security_groups'] | map(attribute='name') | list }}"
......@@ -243,15 +243,6 @@ ansible_controller:
host:
- 192.168.13.*
#############################################
# ntp
#############################################
ntp:
servers:
- ntp1.ill.fr
- ntp2.ill.fr
#############################################
# users
#############################################
......@@ -259,13 +250,15 @@ ntp:
cluster_users_commons:
passwordless_sudo: True
identity_files:
- private: "{{ os_keypairs[0]['identity_file'] }}"
public: "{{ os_keypairs[0]['identity_file'] }}.pub"
host: 192.168.13.*
- identity_file: "{{ os_keypairs[0]['identity_file'] }}"
add_private: True
add_public: True
host:
- 192.168.13.*
- private: "{{ os_keypairs[1]['identity_file'] }}"
public: "{{ os_keypairs[1]['identity_file'] }}.pub"
host: 192.168.13.*
- identity_file: "{{ os_keypairs[1]['identity_file'] }}"
add_private: False
add_public: True
cluster_users:
- name: ubuntu
......@@ -281,6 +274,15 @@ cluster_users:
append: True
create_home: True
#############################################
# ntp
#############################################
ntp:
servers:
- ntp1.ill.fr
- ntp2.ill.fr
#############################################
# jupyterhub
#############################################
......
---
# play me with: ansible-playbook -i inventories/hosts.yml --ask-vault-pass -e "@passwords.yml"
- name: setup openstack cluster
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_os_cluster.yml"
- name: configure ansible controller
import_playbook: "{{ playbook_dir | dirname }}/plays/configure_ansible_controller.yml"
- name: create dynamic inventories
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_os_dynamic_inventories.yml"
- name: configure openstack cluster
import_playbook: "{{ playbook_dir | dirname }}/plays/configure_os_cluster.yml"
- name: setup ntp for all nodes
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_ntp.yml"
- name: setup sssd for all nodes
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_sssd.yml"
- name: setup jupyterhub admin
import_playbook: "{{ playbook_dir | dirname }}/plays/create_jupyterhub_admin.yml"
- name: configure jupyterhub admin
import_playbook: "{{ playbook_dir | dirname }}/plays/configure_jupyterhub_admin.yml"
- name: setup conda for all nodes
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_conda.yml"
- name: setup jupyterhub
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_jupyterhub.yml"
- name: setup nginx server
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_nginx.yml"
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