If you are using GitLab outside of the ILL, then you will need to use HTTPS and not SSH for clone/push/pull operations. If you are using the VPN, then SSH will work normally.

Commit d57a2445 authored by Eric Pellegrini's avatar Eric Pellegrini

added var, inventory and playbook files for IN5 prototype

parent a794ae73
---
os_vms_commons:
vm_admin: ubuntu
#############################################
# ansible controller
#############################################
ansible_controller:
identity_files:
- private: ~/downloads/jupyterhub
host:
- 192.168.13.*
#############################################
# users
#############################################
cluster_users_commons:
passwordless_sudo: True
identity_files:
- identity_file: "{{ ansible_controller['identity_files'][0]['private'] }}"
add_private: False
add_public: True
cluster_users:
vm_admin:
name: ubuntu
new: False
jupyterhub_admin:
name: jhub-admin
group: admin
groups:
- sudo
password: "{{ vault_jhub_admin_password }}"
home: /localhome/jhub-admin
shell: /bin/bash
append: True
create_home: True
new: True
#############################################
# ntp
#############################################
ntp:
servers:
- ntp1.ill.fr
- ntp2.ill.fr
#############################################
# mysql
#############################################
mysql:
localhost: True
bind_server: '127.0.0.1'
databases:
- jupyterhub_db
users:
- name: jupyterhub_db_user
password: "{{ vault_mysql_user }}"
priv: "jupyterhub_db.*:ALL"
host: "localhost"
#############################################
# load_balancer
#############################################
load_balancer:
proxy_server: haproxy_server
pem_file: /etc/ssl/certs/star.ill.fr.pem
#############################################
# jupyterhub
#############################################
jupyterhub:
cookie_secret: "{{ vault_cookie_secret }}"
proxy_authentication_token: "{{ vault_proxy_authentication_token }}"
proxy_server: "{{ load_balancer['proxy_server'] }}"
admin_users:
- caunt
- hall
- pellegrini
- perrin
- pinet
- turner
keycloak:
url: "https://logindev.ill.fr"
admin: "pellegrini"
password: "{{ vault_keycloak_admin_password }}"
realm_name: "ILL"
description: "VISA jupyterhub"
port: 8080
mysql:
bind_server: "{{ mysql['bind_server'] }}"
database: "{{ mysql['databases'][0] }}"
user: "{{ mysql['users'][0]['name'] }}"
password: "{{ mysql['users'][0]['password'] }}"
---
all:
hosts:
localhost:
ansible_connection: local
ansible_become_user: ansible
ansible_become_pass: "{{ vault_ansible_user_pass }}"
haproxy_server:
ansible_host: 192.168.13.221
children:
cluster:
hosts:
jupyterhub:
ansible_host: 192.168.13.221
ansible_ssh_private_key_file: "{{ ansible_controller['identity_files'][0]['private'] }}"
mysql_server:
hosts:
jupyterhub:
ansible_host: 192.168.13.221
jhub_servers:
hosts:
jupyterhub:
ansible_host: 192.168.13.221
vars:
proxy_settings:
http_proxy: http://proxy.ill.fr:8888
https_proxy: http://proxy.ill.fr:8888
no_proxy: localhost,127.0.0.1,.ill.fr,.ill.eu
ftp_proxy: http://proxy.ill.fr:8888
HTTP_PROXY: http://proxy.ill.fr:8888
HTTPS_PROXY: http://proxy.ill.fr:8888
FTP_PROXY: http://proxy.ill.fr:8888
NO_PROXY: localhost,127.0.0.1,.ill.fr,.ill.eu
---
# play me with: ansible-playbook -i inventories/hosts.yml --ask-vault-pass -e "@passwords.yml"
- name: configure openstack cluster
import_playbook: "{{ playbook_dir | dirname }}/plays/configure_os_cluster.yml"
- name: configure ansible controller
import_playbook: "{{ playbook_dir | dirname }}/plays/configure_ansible_controller.yml"
- name: configure cluster users
import_playbook: "{{ playbook_dir | dirname }}/plays/cluster_users.yml"
- name: setup ntp for all nodes
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_ntp.yml"
- name: setup mysql server
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_mysql.yml"
- name: setup load balancer
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_haproxy.yml"
- name: setup sssd for all nodes
import_playbook: "{{ playbook_dir | dirname }}/plays/setup_sssd.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 juyterhub kernels
# import_playbook: "{{ playbook_dir | dirname }}/plays/setup_jupyterhub_kernels.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