Skip to content
Snippets Groups Projects
Commit 5e3952b2 authored by Baptiste DE RENZO's avatar Baptiste DE RENZO
Browse files

Remove netcapure api.json configuration, Refs #39447

parent aaa85da8
No related branches found
No related tags found
No related merge requests found
# 2024-03-22
* Remove netcapture miris api configuration, api key is now generated by `ubicast-netcapture` package
# 2024-02-16 # 2024-02-16
* Rework roles in 3 distinct stages. Stages can be used with the ansible tags of the same name. * Rework roles in 3 distinct stages. Stages can be used with the ansible tags of the same name.
......
...@@ -28,14 +28,6 @@ cache_domain: "cache.ubica.st" ...@@ -28,14 +28,6 @@ cache_domain: "cache.ubica.st"
# Folder used to store the medias # Folder used to store the medias
#netcapture_media_folder: "/data/netcapture/media" #netcapture_media_folder: "/data/netcapture/media"
# netcapture:
# Activates the authentication for the deployed netcapture miris API
#netcapture_miris_auth: True
# netcapture:
# Password of the deployed netcapture miris API
netcapture_miris_user_pwd: "my-password"
# netcapture: # netcapture:
# Activates the SSL verification when calling the Nudgis Manager # Activates the SSL verification when calling the Nudgis Manager
#netcapture_mm_ssl: True #netcapture_mm_ssl: True
...@@ -131,4 +123,4 @@ tester_tests_ignored: ...@@ -131,4 +123,4 @@ tester_tests_ignored:
# From fields for email sending (as defined in RFC2822) # From fields for email sending (as defined in RFC2822)
#vault_email_from: "{{ ansible_fqdn }} <backup@{{ ansible_fqdn }}>" #vault_email_from: "{{ ansible_fqdn }} <backup@{{ ansible_fqdn }}>"
... ...
\ No newline at end of file
...@@ -28,14 +28,6 @@ cache_domain: "cache.ubica.st" ...@@ -28,14 +28,6 @@ cache_domain: "cache.ubica.st"
# Folder used to store the medias # Folder used to store the medias
#netcapture_media_folder: "/data/netcapture/media" #netcapture_media_folder: "/data/netcapture/media"
# netcapture:
# Activates the authentication for the deployed netcapture miris API
#netcapture_miris_auth: True
# netcapture:
# Password of the deployed netcapture miris API
netcapture_miris_user_pwd: "my-password"
# netcapture: # netcapture:
# Activates the SSL verification when calling the Nudgis Manager # Activates the SSL verification when calling the Nudgis Manager
#netcapture_mm_ssl: True #netcapture_mm_ssl: True
...@@ -127,4 +119,4 @@ sysuser_ubicast_password: "my-password" ...@@ -127,4 +119,4 @@ sysuser_ubicast_password: "my-password"
tester_tests_ignored: tester_tests_ignored:
- uptime.sh - uptime.sh
... ...
\ No newline at end of file
...@@ -7,11 +7,6 @@ The netcapture group is used to configure the server which will host UbiCast vir ...@@ -7,11 +7,6 @@ The netcapture group is used to configure the server which will host UbiCast vir
Available variables are listed below, along with the descriptions and the default values. Available variables are listed below, along with the descriptions and the default values.
`netcapture_miris_user_pwd`: Password of the deployed netcapture miris API
```
netcapture_miris_user_pwd: "changeme"
```
`netcapture_mm_url`: URL of the mirismanager to use for packages `netcapture_mm_url`: URL of the mirismanager to use for packages
``` ```
netcapture_mm_url: "mirismanager.example.com" netcapture_mm_url: "mirismanager.example.com"
......
--- ---
# Password of the deployed netcapture miris API
netcapture_miris_user_pwd: "changeme"
# URL of the mirismanager to use for packages # URL of the mirismanager to use for packages
netcapture_mm_url: "mirismanager.example.com" netcapture_mm_url: "mirismanager.example.com"
......
...@@ -6,9 +6,4 @@ ...@@ -6,9 +6,4 @@
- netcapture_mm_url is defined - netcapture_mm_url is defined
- netcapture_mm_ssl is defined - netcapture_mm_ssl is defined
- name: MIRIS API CONFIGURATION FILE
ansible.builtin.include_tasks: "configure/miris-configure.yml"
when:
- netcapture_miris_user_pwd is defined
... ...
---
- name: check if miris api config exists
ansible.builtin.stat:
path: "{{ netcapture_conf_folder }}/api.json"
register: miris_config_file
- name: create netcapture miris api config
ansible.builtin.template:
src: miris-api.json.j2
dest: "{{ netcapture_conf_folder }}/api.json"
mode: u=rw,g=r,o=r
when: not miris_config_file.stat.exists
...
{
"auth_user_password": "{{ netcapture_miris_user_pwd }}",
"auth_enable": {% if netcapture_miris_auth %}true{% else %}false{% endif %}
}
...@@ -9,7 +9,4 @@ netcapture_conf_folder: "/etc/miris/conf" ...@@ -9,7 +9,4 @@ netcapture_conf_folder: "/etc/miris/conf"
# Folder used to store the medias # Folder used to store the medias
netcapture_media_folder: "/data/netcapture/media" netcapture_media_folder: "/data/netcapture/media"
# Activates the authentication for the deployed netcapture miris API
netcapture_miris_auth: True
... ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment