-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creation of mkdocs and yml role files...
- Loading branch information
0 parents
commit e007b3a
Showing
14 changed files
with
838 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.c9 |
Large diffs are not rendered by default.
Oops, something went wrong.
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,24 @@ | ||
[![English](http://upload.wikimedia.org/wikipedia/commons/e/e1/Union_Jack_22x16.png "English")](README.md) | ||
<h1> | ||
<span>Rôle Ansible pour HP iLo</span> | ||
<a href='http://ansible_role_iLo.readthedocs.io/en/latest/?badge=latest'> | ||
<img src='https://readthedocs.org/projects/ansible_role_iLo/badge/?version=latest' alt='Documentation Status' /> | ||
</a> | ||
</h1> | ||
|
||
Object | ||
====== | ||
L'objectif est de mettre en place un rôle Ansible pour le changement des mots de passe HP iLo | ||
|
||
Context | ||
======= | ||
Avec les évenements récents concernant les cyber-attaques, nous nous devons de mettre en place tous les moyens à notre dispositions pour durcir les serveurs de nos clients. | ||
|
||
|
||
## Information sur l'auteur | ||
Made with passion by Jérémie CUADRADO [Linkedin](https://fr.linkedin.com/in/jeremiecuadrado) | ||
|
||
## Url vers la documentation complète en anglais... | ||
[Full documentation](http://ansible_role_iLo.readthedocs.io/en/latest/) | ||
|
||
[![](https://hydra-media.cursecdn.com/bukkit.gamepedia.com/4/4d/AGPL_icon.png "")](LICENSE) |
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,40 @@ | ||
[![Français](http://upload.wikimedia.org/wikipedia/commons/1/14/Flag_of_france.png "Française")](README-FR.md) | ||
|
||
<h1> | ||
<span>Ansible role for HP iLo</span> | ||
<a href='http://ansible_role_iLo.rtfd.io/en/latest/?badge=latest'> | ||
<img src='https://readthedocs.org/projects/ansible_role_iLo/badge/?version=latest' alt='Documentation Status' /> | ||
</a> | ||
</h1> | ||
|
||
## Object | ||
|
||
The objective is to set up an Ansible role to change automaticly the HP iLo password. | ||
|
||
## Context | ||
|
||
With the recent cyber-attacks events, we have to put in place all the means at our disposal to harden the servers of our customers. | ||
|
||
## Example Playbook | ||
|
||
|
||
```yml | ||
--- | ||
- hosts: all | ||
become_method: sudo | ||
vars_files: | ||
- secrets/{{site}}-secrets.yml | ||
vars: | ||
passwdHPiLo: "{{ vault_HP_ilo_hpadmin_pwd }}" | ||
passwdORACLEiLo: "{{ vault_ORACLE_ilo_admin_pwd }}" | ||
roles: | ||
- {role: iLo , tags: iLo-change } | ||
``` | ||
## Author Information | ||
Made with passion by Jérémie CUADRADO [Linkedin](https://fr.linkedin.com/in/jeremiecuadrado) | ||
|
||
|
||
## Link to the readthedocs web page... | ||
[Full documentation](http://ansible_role_iLo.readthedocs.io/en/latest/) | ||
|
||
[![](https://hydra-media.cursecdn.com/bukkit.gamepedia.com/4/4d/AGPL_icon.png "")](LICENSE) |
Empty file.
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,4 @@ | ||
## HowTo use it | ||
```bash | ||
ansible-playbook playbooks/infra-ilo.yml -i inventory/hosts --tags hp_ilo | ||
``` |
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,12 @@ | ||
<h1> | ||
<span>Ansible role for HP iLo</span> | ||
</h1> | ||
|
||
Object | ||
------ | ||
The objective is to set up an Ansible role to change automaticly the HP iLo password. | ||
|
||
Context | ||
------- | ||
With the recent cyber-attacks events, we have to put in place all the means at our disposal to harden the servers of our customers. | ||
|
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,19 @@ | ||
# Installation | ||
|
||
## Prequisits | ||
You have to install: | ||
1. git | ||
2. ansible | ||
3. hponcfg (hp binaries) | ||
4. ansible user must have sudo access | ||
|
||
|
||
## Clone from Github repo | ||
```bash | ||
cd PATH_TO_ANSIBLE/playbooks/roles | ||
git clone https://github.com/redbeard28/ansible_role_iLo.git | ||
mv ansible_role_iLo iLo | ||
``` | ||
|
||
|
||
|
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,7 @@ | ||
License | ||
======= | ||
|
||
Please follow the link to the license: | ||
|
||
|
||
[License](https://www.gnu.org/licenses/agpl-3.0.txt) |
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,30 @@ | ||
# Utilisation | ||
|
||
# Objet | ||
Cette page décrit brièvement l'utilisation du README et la mise en place avec readthedoc.io | ||
|
||
|
||
# README-FR.MD | ||
```marckdown | ||
[![English](http://upload.wikimedia.org/wikipedia/commons/e/e1/Union_Jack_22x16.png "English")](README.md) | ||
<h1> | ||
<span>Titre</span> | ||
<a href='http://MODIFY_IT.readthedocs.io/en/latest/?badge=latest'> | ||
<img src='https://readthedocs.org/projects/MODIFY_IT/badge/?version=latest' alt='Documentation Status' /> | ||
</a> | ||
</h1> | ||
## Object | ||
Décrire l'objectif de votre dev. | ||
## Context | ||
Placez le context du besoin | ||
## Description / Explication | ||
Décrivez ou expliquer la marche à suivre pour installer, paramétrer.... | ||
## Url vers la documentation complète en anglais... | ||
[Full documentation](http://MODIFY_IT.readthedocs.io/en/latest/) | ||
``` |
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 @@ | ||
--- | ||
- hosts: all | ||
become_method: sudo | ||
vars_files: | ||
- secrets/{{site}}-secrets.yml | ||
vars: | ||
passwdHPiLo: "{{ vault_HP_ilo_hpadmin_pwd }}" | ||
passwdORACLEiLo: "{{ vault_ORACLE_ilo_admin_pwd }}" | ||
roles: | ||
- {role: iLo , tags: iLo-change } |
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,13 @@ | ||
site_name: Common files for the docs | ||
site_url: http://www.redbeard-consulting.fr | ||
repo_url: https://github.com/redbeard28/docs_commons | ||
site_description: Build documentation on github.com | ||
site_author: Jeremie CUADRADO aka redbeard28 | ||
|
||
theme: readthedocs | ||
pages: | ||
- [ 'index.md', 'Home' ] | ||
- [ 'install.md', 'Howto', 'Install'] | ||
- [ 'howto.md', 'Howto', 'HowTo use it'] | ||
- [ 'license.md', 'About', 'License' ] | ||
- [ 'about.md', 'About', 'About' ] |
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,14 @@ | ||
- name: Changing iLo password | ||
shell: | | ||
echo '<RIBCL VERSION="2.0"> | ||
<LOGIN USER_LOGIN="IdonTcare" PASSWORD="NONEEDS"> | ||
<USER_INFO MODE="write"> | ||
<MOD_USER USER_LOGIN="hpadmin"> | ||
<PASSWORD value="{{ passwdHPiLo }}"/> | ||
</MOD_USER> | ||
</USER_INFO> | ||
</LOGIN> | ||
</RIBCL>' > /tmp/change-passwd.xml | ||
- name: Configure HP iLO using change-passwd.xml | ||
command: hponcfg -f /tmp/change-passwd.xml |
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,3 @@ | ||
--- | ||
- include: hp-iLo.yml | ||
tags: hp_ilo |