Commit graph

13 commits

Author SHA1 Message Date
6505eb6255 [tutorial Rougail 4.1] conditional disabled variable
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

---
env_nfs:
  configure: true
  server: another-nfs.silique.fr

Examples of Ops inventory file
==============================

1/ INVALID, only with Rougail:

---
env_nfs:
  configure: false
  server: another-nfs.silique.fr

2/ VALID:

---
env_nfs:
  configure: true
2023-12-18 11:34:35 +01:00
ff4fe65d8f [tutorial Rougail 4.0] a boolean variable
NFS configuration
=================

Need could be activated. In this case, we need to add server domain name

---
env_nfs:
  configure: true
2023-12-18 11:34:34 +01:00
15f450a5ab [tutorial Rougail 3.0] a validator
OMOGEN configuration
====================

Ask the keystore filename. This file must has jks extension.

---
env_omogen:
  keystore: filename.jks

Examples of Ops inventory file
==============================

1/ INVALID:

---
env_omogen:
  keystore: filename.txt
2023-12-18 11:34:34 +01:00
0adf7aea25 [tutorial Rougail 2.2] calculed variable
Apero configuration
===================

Get password from an user
2023-12-18 11:34:33 +01:00
0fbde320ae [tutorial Rougail 2.1] a choice option
Apero configuration
===================

Login is now mandatory
Use an existant user login

---
env_apero:
  access:
    - login: srep
      password: oIJuheu27__u2
    - login: snom
      password: oIJuheu27__u2
env_srep:
  apero_user: srep

Examples of Ops inventory file
==============================

1/ INVALID, use an unexisted user:

---
env_apero:
  access:
    - login: srep
      password: oIJuheu27__u2
    - login: snom
      password: oIJuheu27__u2
env_srep:
  apero_user: unknown
2023-12-18 11:34:33 +01:00
fd48879373 [tutorial Rougail 2.0] a leadership family
Apero configuration
===================

Add access variables (login and password)

---
env_apero:
  access:
    - login: srep
      password: oIJuheu27__u2
    - login: snom
      password: oIJuheu27__u2

Examples of Ops inventory file
==============================

1/ VALID:

2/ INVALID, login and password are mandatory if a list is set:

---
env_apero:
  access:
    - login: srep
    - login:
2023-12-18 11:34:32 +01:00
76232d8b6b [tutorial Rougail 1.5] variable is not mandatory
Proxy configuration
===================

The variable env_proxy.no_proxy is not mandatory

Examples of Ops inventory file
==============================

Modify the file: Ops/group_vars/all.yml

1/ VALID:

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - localhost
    - 192.168.1.1
    - .ac-dijon.fr

2/ VALID:

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:32 +01:00
069582559d [tutorial Rougail 1.4] a variable with multiple values
Proxy configuration
===================

Add env_proxy.no_proxy for proxy exception

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - localhost
    - 192.168.1.1
    - .ac-dijon.fr

Examples of Ops inventory file
==============================

1/ INVALID, must be a list:

---
env_proxy:
  host: proxy.example.net
  no_proxy: localhost

2/ INVALID, an integer:

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - 1

3/ INVALID, without value:

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:31 +01:00
1599acfeb5 [tutorial Rougail 1.3] default variable
Proxy configuration
===================

env_proxy.port has a default value
with ansible we needs to define a new mapping variable: env_proxy_all

Examples of Ops inventory file
==============================

1/ VALID:

---
env_proxy:
  host: proxy.example.net

2/ VALID:

---
env_proxy:
  host: proxy.example.net
  port: "3129"
2023-12-18 11:34:31 +01:00
dce9304b17 [tutorial Rougail 1.2] a port variable
Proxy configuration
===================

Add the env_proxy.port variable

---
env_proxy:
  host: proxy.example.net
  port: "3128"

Examples of Ops inventory file
==============================

1/ INVALID only with rougail:

---
env_proxy:
  host: proxy.example.net
  port: 3128

2/ INVALID, port is missing:

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:30 +01:00
af85413f66 [tutorial Rougail 1.1] advanced hostname variable
Proxy configuration
===================

Modify the "host" variable

Examples of Ops inventory file
==============================

1/ VALID:

---
env_proxy:
  host: proxy.example.net

2/ INVALID, host is null:

---
env_proxy:
  host:

3/ INVALID, host is an integer:

---
env_proxy:
  host: 1

4/ INVALID but only for rougail:

---
env_proxy:
  host: the proxy
2023-12-18 11:34:30 +01:00
5916176182 [tutorial Rougail 1.0] a single string variable
Proxy configuration
===================

Add a single "host" variable

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:29 +01:00
16cfea3a23 [init] Discover Rougail 2023-12-18 11:34:29 +01:00