-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #678 from stackhpc/os_capacity
Add Openstack Capacity to StackHPC Kayobe Config
- Loading branch information
Showing
8 changed files
with
1,896 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
- hosts: monitoring | ||
gather_facts: false | ||
|
||
tasks: | ||
- name: Create os-capacity directory | ||
ansible.builtin.file: | ||
path: /opt/kayobe/os-capacity/ | ||
state: directory | ||
|
||
- name: Template clouds.yml | ||
ansible.builtin.template: | ||
src: templates/os_capacity-clouds.yml.j2 | ||
dest: /opt/kayobe/os-capacity/clouds.yaml | ||
|
||
- name: Ensure os_capacity container is running | ||
docker_container: | ||
name: os_capacity | ||
image: ghcr.io/stackhpc/os-capacity:master | ||
env: | ||
OS_CLOUD: openstack | ||
OS_CLIENT_CONFIG_FILE: /etc/openstack/clouds.yaml | ||
mounts: | ||
- type: bind | ||
source: /opt/kayobe/os-capacity/ | ||
target: /etc/openstack/ | ||
network_mode: host | ||
restart_policy: unless-stopped | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
clouds: | ||
openstack: | ||
auth: | ||
auth_url: "{{ secrets_os_exporter_auth_url }}" | ||
application_credential_id: "{{ secrets_os_exporter_credential_id }}" | ||
application_credential_secret: "{{ secrets_os_exporter_credential_secret }}" | ||
region_name: "RegionOne" | ||
interface: "internal" | ||
identity_api_version: 3 | ||
auth_type: "v3applicationcredential" |
Oops, something went wrong.