-
Notifications
You must be signed in to change notification settings - Fork 19
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 #501 from stackhpc/feature/yoga/redfish-exporter
Adds seed_redfish_exporter_container
- Loading branch information
Showing
10 changed files
with
829 additions
and
1,114 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,6 @@ | ||
--- | ||
- name: Restart redfish exporter container if config changed | ||
become: true | ||
command: docker kill -s SIGHUP redfish_exporter | ||
when: | ||
- redfish_exporter_config is changed |
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,16 @@ | ||
--- | ||
|
||
- name: Ensure /opt/kayobe/containers/redfish_exporter exists | ||
file: | ||
path: "/opt/kayobe/containers/redfish_exporter" | ||
state: directory | ||
mode: 0770 | ||
become: true | ||
|
||
- name: Template redfish exporter configuration file | ||
template: | ||
src: "{{ kayobe_config_path }}/containers/redfish_exporter/redfish_exporter.yml" | ||
dest: /opt/kayobe/containers/redfish_exporter/ | ||
mode: 0660 | ||
become: true | ||
register: redfish_exporter_config |
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,5 @@ | ||
--- | ||
hosts: | ||
default: | ||
username: "{{ redfish_exporter_default_username }}" | ||
password: "{{ redfish_exporter_default_password }}" |
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
Oops, something went wrong.