Skip to content

Commit ea03770

Browse files
committed
readme.md updated
0 parents  commit ea03770

File tree

23 files changed

+1052
-0
lines changed

23 files changed

+1052
-0
lines changed

.ansible-lint

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
3+
skip_list:
4+
- 'role-name'

.github/workflows/galaxy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Release to Ansible Galaxy
3+
4+
'on':
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- name: galaxy
14+
uses: robertdebock/[email protected]
15+
with:
16+
galaxy_api_key: ${{ secrets.galaxy_api_key }}

.github/workflows/lint.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
name: Lint
3+
'on':
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
11+
yamllint:
12+
name: yamllint
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out the codebase.
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python 3.7.
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.x'
22+
23+
- name: Install yamllist
24+
run: pip3 install yamllint
25+
26+
- name: Run yamllint.
27+
run: yamllint .
28+
29+
ansible-lint:
30+
name: ansible-lint
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout the codebase.
34+
uses: actions/checkout@v2
35+
36+
- name: Set up Python 3.7.
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: '3.x'
40+
41+
- name: Install ansible and other packages
42+
run: pip3 install ansible ansible-lint
43+
44+
- name: Run ansible-lint.
45+
run: ansible-lint
46+
47+
pre-commit:
48+
name: 'Pre-Commit'
49+
needs:
50+
- yamllint
51+
- ansible-lint
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: 'Checkout'
55+
uses: actions/[email protected]
56+
57+
- name: Install ansible-lint
58+
run: pip3 install ansible-lint
59+
60+
- name: 'Pre-Commit 🔎'
61+
uses: pre-commit/[email protected]
62+
continue-on-error: true
63+
64+
- name: 'Slack Notification'
65+
uses: clouddrove/action-slack@v2
66+
with:
67+
status: ${{ job.status }}
68+
fields: repo,author
69+
author_name: 'CloudDrove Inc.'
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ANSIBLE }}
73+
if: always()

.github/workflows/readme.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
name: 'Create README.md file'
3+
'on':
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
readme-create:
10+
name: 'Autogenerate Readme file'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: 'Checkout'
14+
uses: actions/checkout@master
15+
16+
- name: Set up Python 3.7.
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.x'
20+
21+
- name: 'Generate readme.md from readme.yaml'
22+
uses: 'clouddrove/[email protected]'
23+
with:
24+
actions_subcommand: 'readme'
25+
github_token: '${{ secrets.GITHUB }}'
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Install ansible-lint
30+
run: pip3 install ansible-lint
31+
32+
- name: pre-commit check errors
33+
uses: pre-commit/[email protected]
34+
continue-on-error: true
35+
36+
- name: pre-commit fix errors
37+
uses: pre-commit/[email protected]
38+
continue-on-error: true
39+
40+
- name: 'push readme'
41+
uses: 'clouddrove/[email protected]'
42+
continue-on-error: true
43+
with:
44+
actions_subcommand: 'push'
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: 'Slack Notification'
49+
uses: clouddrove/action-slack@v2
50+
with:
51+
status: ${{ job.status }}
52+
fields: repo,author
53+
author_name: 'CloudDrove Inc.'
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ANSIBLE }}
57+
if: always()

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# ignored files
2+
.idea
3+
*.iml
4+
*.zip
5+
.cache

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
repos:
3+
4+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
5+
rev: v3.4.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
- id: mixed-line-ending
10+
- id: check-byte-order-marker
11+
- id: check-executables-have-shebangs
12+
- id: check-merge-conflict
13+
- id: debug-statements
14+
- id: check-yaml
15+
- id: check-added-large-files
16+
17+
- repo: https://github.com/ansible/ansible-lint.git
18+
rev: v5.0.8
19+
hooks:
20+
- id: ansible-lint
21+
files: \.(yaml|yml)$

.yamllint

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
line-length:
6+
max: 140
7+
level: warning
8+
truthy:
9+
allowed-values: ['true', 'false', 'yes', 'no']

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Cloud Drove
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export GENIE_PATH ?= $(shell 'pwd')/../../../genie
2+
3+
include $(GENIE_PATH)/Makefile

README.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. -->
2+
3+
<p align="center"> <img src="https://user-images.githubusercontent.com/50652676/62451340-ba925480-b78b-11e9-99f0-13a8a9cc0afa.png" width="100" height="100"></p>
4+
5+
<h1 align="center">
6+
Ansible Role Docker PHP
7+
</h1>
8+
9+
<p align="center" style="font-size: 1.2rem;">
10+
This ansible role is used to install PHP with docker on linux.
11+
</p>
12+
13+
<p align="center">
14+
15+
<a href="https://www.ansible.com">
16+
<img src="https://img.shields.io/badge/Ansible-2.9-green?style=flat&logo=ansible" alt="Ansible">
17+
</a>
18+
<a href="LICENSE.md">
19+
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="Licence">
20+
</a>
21+
<a href="https://ubuntu.com/">
22+
<img src="https://img.shields.io/badge/ubuntu-18.x-orange?style=flat&logo=ubuntu" alt="Distribution">
23+
</a>
24+
<a href="https://ubuntu.com/">
25+
<img src="https://img.shields.io/badge/ubuntu-20.x-orange?style=flat&logo=ubuntu" alt="Distribution">
26+
</a>
27+
<a href="https://www.centos.org/">
28+
<img src="https://img.shields.io/badge/centos-8.x-orange" alt="Distribution">
29+
</a>
30+
<a href="https://aws.amazon.com/amazon-linux-ami/">
31+
<img src="https://img.shields.io/badge/Amazon_linux-2-yellow?style=flat&logo=linux" alt="Distribution">
32+
</a>
33+
<a href="https://github.com/clouddrove/ansible-role-docker-php/actions/workflows/lint.yml">
34+
<img src="https://github.com/clouddrove/ansible-role-docker-php/actions/workflows/lint.yml/badge.svg" alt="Actions">
35+
</a>
36+
37+
</p>
38+
<p align="center">
39+
40+
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/ansible-role-docker-php'>
41+
<img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" />
42+
</a>
43+
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Ansible+Role+Docker+PHP&url=https://github.com/clouddrove/ansible-role-docker-php'>
44+
<img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" />
45+
</a>
46+
<a href='https://twitter.com/intent/tweet/?text=Ansible+Role+Docker+PHP&url=https://github.com/clouddrove/ansible-role-docker-php'>
47+
<img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" />
48+
</a>
49+
50+
</p>
51+
<hr>
52+
53+
We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.
54+
55+
Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in [ansible-playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to achieve the desired yet consistent results.
56+
57+
## Prerequisites
58+
59+
This module has a few dependencies:
60+
61+
- [Ansible2.9](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
62+
- [Python](https://www.python.org/downloads)
63+
- [Docker](https://docs.docker.com/install/linux/docker-ce/ubuntu)
64+
65+
## What Includes
66+
67+
Followiing things includes in this role:
68+
69+
- Php-8.0
70+
- Php-fpm
71+
- Pecl
72+
- Composer
73+
74+
## Example Playbook
75+
76+
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/ansible-role-docker-php/releases).
77+
78+
```yaml
79+
- hosts: localhost
80+
remote_user: root
81+
roles:
82+
- clouddrove.ansible_role_docker_php
83+
```
84+
85+
## Variables
86+
87+
```yaml
88+
php_version: 8.0.7-fpm
89+
php_user: www-data
90+
php_group: www-data
91+
php_opt_dir: "/opt/php"
92+
php_config_dir: "{{ php_opt_dir }}/config"
93+
```
94+
95+
## Installation
96+
97+
```console
98+
$ ansible-galaxy install clouddrove.ansible_role_docker_php
99+
```
100+
101+
## Feedback
102+
103+
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/ansible-role-docker-php/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
104+
105+
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/ansible-role-docker-php)!
106+
107+
## About us
108+
109+
At [CloudDrove][website], we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.
110+
111+
<p align="center">We are <b> The Cloud Experts!</b></p>
112+
<hr />
113+
<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p>
114+
115+
[website]: https://clouddrove.com
116+
[github]: https://github.com/clouddrove
117+
[linkedin]: https://cpco.io/linkedin
118+
[twitter]: https://twitter.com/clouddrove/
119+
[email]: https://clouddrove.com/contact-us.html
120+
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=

0 commit comments

Comments
 (0)