in5_prototype.yml 3.88 KB
Newer Older
1 2 3 4 5 6 7 8
---
#############################################
# openstack
#############################################

os_admin_auth:
  auth_url: http://oscloud.ill.fr:5000/v3
  username: visa-admin
9
  password: "{{ vault_os_admin_password }}"
10 11 12 13 14 15
  project_name: "VISA Development"
  project_domain_name: default
  user_domain_name: default
  project_id: ba1076db7c4e4cd89b3230ac0c131862

os_flavors:
16
  - name: jupyterhub-large
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
    auth: "{{ os_admin_auth }}"
    auth_type: password
    ram: 131072
    vcpus: 8
    disk: 40

os_keypairs:
  - name: intra-cluster
    auth: "{{ os_admin_auth }}"
    auth_type: password
    size: 2048
    type: rsa
    identity_file: "~/.ssh/openstack/intra-cluster"
    create: True

  - name: extra-cluster
    auth: "{{ os_admin_auth }}"
    auth_type: password
    size: 2048
    type: rsa
    identity_file: "~/.ssh/openstack/extra-cluster"
    create: True

os_vms_commons:
  keypair: "{{ os_keypairs[1]['name'] }}"
42
  network: "visa_dev"
43 44 45 46 47 48 49 50 51 52 53 54 55
  availability_zone: nova
  security_groups: ["default","in5-secgrp"]
  auth: "{{ os_admin_auth }}"
  auth_type: password
  flavor: "{{ os_flavors[0]['name'] }}"
  image: base-ill
  auto_ip: True
  delete_fip: True
  config_drive: True
  identity_file: "{{ os_keypairs[1]['identity_file'] }}"
  vm_admin: ubuntu

os_vms:
56
  - name: jhub-srv
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
    inventory_groups:
      - jhub_servers
      - mysql_server
      - haproxy_server
      - cluster

#############################################
# ansible controller
#############################################

ansible_controller:
  identity_files:
    - private: "{{ os_keypairs[1]['identity_file'] }}"
      host:
        - 192.168.14.*

#############################################
# users
#############################################

cluster_users_commons:
  passwordless_sudo: True
  identity_files:
    - identity_file: "{{ os_keypairs[0]['identity_file'] }}"
      add_private: True
      add_public: True
      host:
        - 192.168.14.*

    - identity_file: "{{ os_keypairs[1]['identity_file'] }}"
      add_private: False
      add_public: True

cluster_users:
  vm_admin:
    name: ubuntu
    group: 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:
  databases:
    - jupyterhub_db

  users:
    - name: jupyterhub_db_user
      password: "{{ vault_mysql_user }}"
      priv: "jupyterhub_db.*:ALL"
129
      host: "localhost"
130 131 132 133 134 135

#############################################
# load_balancer
#############################################

load_balancer:
136
  proxy_server: jupyterhub-dev.ill.fr
137

138
  pem_file: /etc/ssl/certs/star.ill.fr-eu.pem
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179

#############################################
# ssd
#############################################

sssd:
  local_homes:
    - user: "{{ cluster_users.vm_admin.name }}"
      home: "/localhome/{{ cluster_users.vm_admin.name }}"

#############################################
# jupyterhub
#############################################

jupyterhub:
  cookie_secret: "{{ vault_cookie_secret }}"

  proxy_authentication_token: "{{ vault_proxy_authentication_token }}"

  proxy_server: jupyterhub-dev.ill.fr

  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:
    database: "{{ mysql['databases'][0] }}"
    user: "{{ mysql['users'][0]['name'] }}"
    password: "{{ mysql['users'][0]['password'] }}"