Skip to content

Commit

Permalink
Creation of mkdocs and yml role files...
Browse files Browse the repository at this point in the history
  • Loading branch information
redbeard28 committed May 30, 2017
0 parents commit e007b3a
Show file tree
Hide file tree
Showing 14 changed files with 838 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.c9
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions README-FR.md
@@ -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)
40 changes: 40 additions & 0 deletions README.md
@@ -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 added docs/about.md
Empty file.
4 changes: 4 additions & 0 deletions docs/howto.md
@@ -0,0 +1,4 @@
## HowTo use it
```bash
ansible-playbook playbooks/infra-ilo.yml -i inventory/hosts --tags hp_ilo
```
12 changes: 12 additions & 0 deletions docs/index.md
@@ -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.

19 changes: 19 additions & 0 deletions docs/install.md
@@ -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
```



7 changes: 7 additions & 0 deletions docs/license.md
@@ -0,0 +1,7 @@
License
=======

Please follow the link to the license:


[License](https://www.gnu.org/licenses/agpl-3.0.txt)
30 changes: 30 additions & 0 deletions docs/utilisation-FR.md
@@ -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/)
```
10 changes: 10 additions & 0 deletions infra-ilo.yml
@@ -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 }
13 changes: 13 additions & 0 deletions mkdocs.yml
@@ -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' ]
14 changes: 14 additions & 0 deletions tasks/hp-ilo.yml
@@ -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
3 changes: 3 additions & 0 deletions tasks/main.yml
@@ -0,0 +1,3 @@
---
- include: hp-iLo.yml
tags: hp_ilo

0 comments on commit e007b3a

Please sign in to comment.