Skip to content

Setting Up Ansible Environment and Hosts #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f1f2f95
add web-dev, db-dev, volumes and networks
Shafiya-Heena Jun 10, 2024
3a20c25
structured the directory names
Shafiya-Heena Jun 10, 2024
a1f058e
contains web-dockerfile and config files
Shafiya-Heena Jun 10, 2024
07e0932
wordpress setup scripts along with config files
Shafiya-Heena Jun 10, 2024
a444808
remove setup and staff scripts temporarly
Shafiya-Heena Jun 11, 2024
816dda9
remove .env and .gitignore
Shafiya-Heena Jun 11, 2024
eb562bc
update docker-compose
Shafiya-Heena Jun 11, 2024
55a8f08
add .env.example and .gitignore as it is needed for docker-compose
Shafiya-Heena Jun 11, 2024
2405ac6
making the environment more generic and removing the index related files
Shafiya-Heena Jun 11, 2024
c5055ea
update Dockerfile
Shafiya-Heena Jun 11, 2024
29a81d7
replacing index with dev
Shafiya-Heena Jun 11, 2024
e0b78f6
replacing index with dev
Shafiya-Heena Jun 11, 2024
c42e6eb
update Dockerfile
Shafiya-Heena Jun 11, 2024
75fba7e
update to add ssh for ansible
Shafiya-Heena Jun 12, 2024
f2db65c
update for ssh in web
Shafiya-Heena Jun 12, 2024
56ebddb
add sysadmin-ssh-keys dir to store keys generated by script
Shafiya-Heena Jun 12, 2024
83d17bc
updated to remove authorized_keys file
Shafiya-Heena Jun 12, 2024
ac06af8
update generate script
Shafiya-Heena Jun 13, 2024
22a6b11
remove version
Shafiya-Heena Jun 13, 2024
d271002
updated to use interpolation in docker-compose
Shafiya-Heena Jun 13, 2024
092b880
update README
Shafiya-Heena Jun 13, 2024
cd5a29e
update readme
Shafiya-Heena Jun 13, 2024
f861973
update README
Shafiya-Heena Jun 13, 2024
e4482dc
adjust the spacing
Shafiya-Heena Jun 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update readme
  • Loading branch information
Shafiya-Heena committed Jun 13, 2024
commit cd5a29e5cecbc358fa5f19702ae7126bfef00b01
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ See [`CONTRIBUTING.md`][org-contrib].

The aim of the project is to establish a robust and localized development environment utilizing Ansible and Docker. This environment will mirror a professional work setting, incorporating a dedicated security server (Bastion), automation through Ansible, a web server, and a data storage server. This configuration will simplify and secure development processes and serve as a blueprint for future projects at CC.

Docker containers:
**Docker containers:**

The [`docker-compose.yml`](docker-compose.yml) file defines the following
containers:

- Bastion (SSH jump server)(WIP)
- **ansible-dev** - Ansible
- **web-dev** - Web server (Apache2/WordPress)
Expand All @@ -40,6 +42,17 @@ containers:

See [Create Local Ansible Dev Environment Using Docker](https://opensource.creativecommons.org/programs/project-ideas/#ansible-dev-env) for more details.

### Setup
- Create the `.env` file:
```shell
cp .env.example .env
```
- Execute generate_ssh_keys script
- Build/start Docker:
```shell
docker compose up
```
- Wait for build and initialization to complete
#### SSH (Work in Progress)

The SSH setup has been established and is currently in use for the Ansible container. Follow the steps below to generate and use the SSH keys for the sysadmin user:
Expand Down