Skip to content

Commit

Permalink
installers changes
Browse files Browse the repository at this point in the history
  • Loading branch information
frsauvage committed Nov 15, 2019
1 parent d1219ed commit 54d40dc
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 39 deletions.
42 changes: 23 additions & 19 deletions ansible/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,33 +88,36 @@ By default, the following proxy environment variables are copied in AWX docker c

For more details, read the [How to change my Proxy](#howto_proxy)

### launch installer
First download zip or clone the github repository
### get it !
You can get it from
- Bull SOL (Support on line): full installation
- get zip from this repository
- clone this repository

![alt text](https://github.com/atosorigin/bullsequana-edge-system-management/blob/master/ansible/doc/git_clone.png)

if you copy this repository, just type:
from zip file, just unzip the file:
```
git clone https://github.com/atosorigin/bullsequana-edge-system-management.git
unzip <your_zip>
```

if you zip the repository, just type:
from this repository, just clone:
```
unzip <your_downloaded_zip>
git clone https://github.com/atosorigin/bullsequana-edge-system-management.git
```

### launch installer
Bull Sequana Edge Ansible Extensions has 3 AWX installers and an option to try it
Just choose your favorite installation for your environment
`local: <install_dir>/install_playbooks_and_plugins.sh` it will copy Ansible playbooks and plugins in default Ansible environment, mainly dedicated to an existing Ansible/AWX environment
`internet: <install_dir>/install_awx_from_internet.sh` it will build from internet and install Ansible/AWX docker containers with your local Dockerfiles that you can adapt as needed => use **stop_awx.sh** and **start_awx.sh** after
`no internet: <install_dir>/install_awx_from_tar_files.sh` it will install from tar files Ansible/AWX docker containers with your local Dockerfiles that you can adapt as needed => use **stop_awx.sh** and **start_awx.sh** after
`try it: <install_dir>/install_awx_from_dockerhub.sh` mainly dedicated to try bullsequana edge system management tool, it will install dockerhub atosorigin images, you cannot adapt the local Dockerfiles => use **stop_awx_from_dockerhub.sh*** and **start_awx_from_dockerhub.sh** after
`on existing AWX:` nothing to install: go to the next section to add playbooks and plugins
`from clone or zip: <install_dir>/install_awx.sh` it will build docker containers and install Ansible/AWX docker containers with your local Dockerfiles that you can adapt as needed => use **stop_awx.sh** and **start_awx.sh** after
`try it: <install_dir>/install_awx_from_dockerhub.sh` mainly dedicated to try bullsequana edge system management tool, it will install dockerhub atosorigin images, you cannot adapt the local Dockerfiles => use **stop_awx.sh*** and **start_awx.sh** after

For more information about dockerhub installation Visit https://hub.docker.com/repository/docker/atosorigin/bull-sequana-edge-awx-web

![#9ECBFF](https://placehold.it/15/9ECBFF/000000?text=+) Best Practice: remove useless install, stop and start scripts

![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Warning: atosorigin dockerhub images have no warranty, do not use in production
![#9ECBFF](https://placehold.it/15/9ECBFF/000000?text=+) Best Practice: remove useless install, stop and start scripts
![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Warning: atosorigin dockerhub images have no warranty, do not use in production
![#c5f015](https://placehold.it/15/c5f015/000000?text=+) Info: if tar files are not present, images are loaded from internet

### access your dashboard
run a browser with: ` https://<your_server>`
Expand All @@ -137,6 +140,8 @@ You should have now:
- 1 Credential : Bull Sequana Edge Vault
- Bull playbooks

![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Warning: on existing installation, tower-cli should be installed to run add_playbooks.sh

### complete your inventory first
1. go to Inventory
2. select or create an inventory
Expand Down Expand Up @@ -304,23 +309,22 @@ If you already have an Ansible installation, you can just install ansible playbo
1. install ansible
`yum install python3`
`pip3 install ansible`

2. edit and customize *install_locally.sh* script
2. edit and customize *install_playbooks_and_plugins.sh* script
The script basically copies ansible and plugins in default ansible directories
![#f03c15](https://placehold.it/15/f03c15/000000?text=+) If you change default ansible directories, you should adapt the script target directories as needed
3. run the script `<install_dir>/install_locally.sh`
3. run the script `<install_dir>/install_playbooks_and_plugins.sh`

Check your ansible python version:
`ansible --version`

As explained in the documentation, you should force python3 interpreter:
As explained in the documentation, you should force python3 interpreter:
![alt text](https://github.com/atosorigin/bullsequana-edge-system-management/blob/master/ansible/doc/ansible_python3_interpreter.png)

#### <a name="install_docker"></a>Install ansible on docker
Bull Sequana Edge Ansible Extensions has three installers: Just choose your favorite installation for your environment
Bull Sequana Edge Ansible Extensions has three docker installers: Just choose your favorite installation for your environment
1. `<install_dir>/install.sh` run all (Ansible and Zabbix Bull Sequana Edge Extensions) => use stop.sh and start.sh after
2. `<install_dir>/install_awx.sh` build and run from local Dockerfile that you can adapt => use stop_awx.sh and start_awx.sh after
3. `<install_dir>/install_awx_from_dockerhub.sh` download and run atosorigin dockerhub images => use stop_awx_from_dockerhub.sh and start_awx_from_dockerhub.sh after
3. `<install_dir>/install_awx_from_dockerhub.sh` download and run atosorigin dockerhub images => use stop_awx.sh and start_awx.sh after

![#9ECBFF](https://placehold.it/15/9ECBFF/000000?text=+) Best Practice: remove useless install, stop and start scripts

Expand Down
4 changes: 4 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

./install_awx.sh
./install_zabbix.sh
5 changes: 5 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

./start_awx.sh
./start_zabbix.sh

4 changes: 4 additions & 0 deletions stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

./stop_awx.sh
./stop_zabbix.sh
16 changes: 8 additions & 8 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ docker images
docker volume list

#echo "removing ansible..."
#rm -rf ansible
rm -rf ansible
#echo "removing zabbix..."
#rm -rf zabbix
rm -rf zabbix
#echo "removing Dockerfiles..."
#rm -rf Dockerfiles
rm -rf Dockerfiles
#echo "removing postgres backups..."
#rm -rf ansible/pgadmin
#rm -rf zabbix/pgadmin
rm -rf ansible/pgadmin
rm -rf zabbix/pgadmin
#echo "shells"
#rm -f *.sh
rm -f *.sh
#echo "yml files"
#rm -f *.yml
rm -f *.yml
#echo "md files"
#rm -f *.md
rm -f *.md

27 changes: 15 additions & 12 deletions zabbix/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,36 @@ By default, the following XXX_PROXY environment variables are copied in zabbix c

For more details, read the [How to change my Proxy](#howto_proxy) part

### launch installer
### launch installer
First download zip or clone the github repository
### get it !
You can get it from
- Bull SOL (Support on line): full installation
- get zip from this repository
- clone this repository

![alt text](https://github.com/atosorigin/bullsequana-edge-system-management/blob/master/ansible/doc/git_clone.png)

if you copy this repository, just type:
from zip file, just unzip the file:
```
git clone https://github.com/atosorigin/bullsequana-edge-system-management.git
unzip <your_zip>
```

if you zip the repository, just type:
from this repository, just clone:
```
unzip <your_downloaded_zip>
git clone https://github.com/atosorigin/bullsequana-edge-system-management.git
```

### launch installer
Bull Sequana Edge Zabbix Extensions has 3 Zabbix installers and an option to try it
Just choose your favorite installation for your environment
`local: import zabbix/server/external_scripts/ templates`: you can import Atos templates in your Zabbix environment if you have an existing Zabbix installation
`on existing zabbix: import Atos templates`: you can import Atos templates in your Zabbix environment if you have an existing Zabbix installation
`full: <install_dir>/install.sh` it will build and install Ansible and Zabbix Bull Sequana Edge Extensions docker containers at once from your local Dockerfiles => use **stop.sh** and **start.sh** after
`partial: <install_dir>/install_zabbix.sh` it will build and install only Zabbix docker containers from your local Dockerfiles that you can adapt as needed => use **stop_zabbix.sh** and **start_zabbix.sh** after
`try it: <install_dir>/install_zabbix_from_dockerhub.sh` mainly dedicated to try bullsequana edge system management tool, it will install dockerhub atosorigin images, you cannot adapt the local Dockerfiles => use **stop_zabbix_from_dockerhub.sh*** and **start_zabbix_from_dockerhub.sh** after
`try it: <install_dir>/install_zabbix_from_dockerhub.sh` mainly dedicated to try bullsequana edge system management tool, it will install dockerhub atosorigin images, you cannot adapt the local Dockerfiles => use **stop_zabbix.sh*** and **start_zabbix.sh** after
For more information about dockerhub installation Visit https://hub.docker.com/repository/docker/atosorigin/bull-sequana-edge-zabbix-server

![#9ECBFF](https://placehold.it/15/9ECBFF/000000?text=+) Best Practice: remove useless install, stop and start scripts

![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Warning: atosorigin dockerhub images have no warranty, do not use in production
![#9ECBFF](https://placehold.it/15/9ECBFF/000000?text=+) Best Practice: remove useless install, stop and start scripts
![#f03c15](https://placehold.it/15/f03c15/000000?text=+) Warning: atosorigin dockerhub images have no warranty, do not use in production
![#c5f015](https://placehold.it/15/c5f015/000000?text=+) Info: if tar files are not present, images are loaded from internet

### enable automatic inventory by default
1. Go to Administration / General / Others
Expand Down

0 comments on commit 54d40dc

Please sign in to comment.