Remove all the cruft.

parent 2ebf6a44
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true
[packages]
[dev-packages]
molecule = "*"
docker = "*"
This diff is collapsed.
......@@ -8,37 +8,3 @@ A role to install and configure [homebrew-dyndns].
* Raspbian Stretch Lite 2018-10-09
* Debian Stretch
# Requirements
None.
None.
# Dependencies
None.
# Example Playbook
```yaml
- hosts: localhost
roles:
- role: hdyndns
```
# Testing
```bash
$ pip install --user pipenv
$ pipenv install --dev
$ pipenv run molecule test
```
# License
* https://www.gnu.org/licenses/gpl-3.0.en.html
# Author Information
* https://git.coop/homebrew-ansible
---
galaxy_info:
author: Homebrew Ansible.
description: A role to install and configure homebrew-dyndns.
author: decentral1se
description: A role to install and configure hdyndns.
license: GPLv3
min_ansible_version: 2.7
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: instance
image: debian:stretch
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
- syntax
verifier:
name: testinfra
lint:
name: flake8
---
- name: Converge
hosts: all
roles:
- role: fail2ban
fail2ban_jail_local: jail.local
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true
[packages]
[dev-packages]
molecule = "*"
docker = "*"
This diff is collapsed.
......@@ -17,44 +17,7 @@ A crontab for renewal is also configured.
* Raspbian Stretch Lite 2018-10-09
* Debian Stretch
# Requirements
None.
# Role Variables
* `letsencrypt_email`: Email for certificate issues.
* `letsencrypt_domains`: Domains to generate certificates for.
# Dependencies
None.
# Example Playbook
```yaml
- hosts: localhost
roles:
- role: letsencrypt
letsencrypt_email: foo@bar.com
letsencrypt_domains:
- foo.com
- bar.com
- baz.com
```
# Testing
```bash
$ pip install --user pipenv
$ pipenv install --dev
$ pipenv run molecule test
```
# License
* https://www.gnu.org/licenses/gpl-3.0.en.html
# Author Information
* https://git.coop/homebrew-ansible
---
galaxy_info:
author: Homebrew Ansible.
author: decentral1se
description: A role to install and configure certbot.
license: GPLv3
min_ansible_version: 2.7
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: instance
image: debian:stretch
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
- syntax
verifier:
name: testinfra
lint:
name: flake8
---
- name: Converge
hosts: all
roles:
- role: letsencrypt
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true
[packages]
[dev-packages]
molecule = "*"
docker = "*"
This diff is collapsed.
......@@ -8,39 +8,3 @@ A role to install and configure [nginx].
* Raspbian Stretch Lite 2018-10-09
* Debian Stretch
# Requirements
None.
# Role Variables
None.
# Dependencies
None.
# Example Playbook
```yaml
- hosts: localhost
roles:
- role: nginx
```
# Testing
```bash
$ pip install --user pipenv
$ pipenv install --dev
$ pipenv run molecule test
```
# License
* https://www.gnu.org/licenses/gpl-3.0.en.html
# Author Information
* https://git.coop/homebrew-ansible
---
galaxy_info:
author: Homebrew Ansible.
author: decentral1se
description: A role to install and configure nginx.
license: GPLv3
min_ansible_version: 2.7
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: instance
image: debian:stretch
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
- syntax
verifier:
name: testinfra
lint:
name: flake8
---
- name: Converge
hosts: all
roles:
- role: nginx
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true
[packages]
[dev-packages]
molecule = "*"
docker = "*"
This diff is collapsed.
......@@ -11,10 +11,6 @@ The configuration follows the guidelines of:
* Raspbian Stretch Lite 2018-10-09
* Debian Stretch
# Requirements
None.
# Role Variables
* `ssh_port`: The SSH port to expose.
......@@ -23,34 +19,3 @@ None.
* `ssh_allowed_users`: The usernames for users that can login.
* Defaults to `[]` (if not used, will not be set).
* Don't forget to add your own non-root account if using.
# Dependencies
None.
# Example Playbook
```yaml
- hosts: localhost
roles:
- role: ssh
ssh_port: 37498
ssh_allowed_users:
- pi
```
# Testing
```bash
$ pip install --user pipenv
$ pipenv install --dev
$ pipenv run molecule test
```
# License
* https://www.gnu.org/licenses/gpl-3.0.en.html
# Author Information
* https://git.coop/homebrew-ansible
---
galaxy_info:
author: Homebrew Ansible.
author: decentral1se
description: A role to install and configure SSH.
license: GPLv3
min_ansible_version: 2.7
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: instance
image: debian:stretch
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
- syntax
verifier:
name: testinfra
lint:
name: flake8
---
- name: Converge
hosts: all
roles:
- role: ssh
- role: ssh
ssh_allowed_users:
- root
ssh_port: 12345
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true
[packages]
[dev-packages]
molecule = "*"
docker = "*"
This diff is collapsed.
......@@ -9,52 +9,11 @@ A role to install and configure [UFW].
* Raspbian Stretch Lite 2018-10-09
* Debian Stretch
# Requirements
None.
# Role Variables
Refer to the [ufw module parameters] for more information.
[ufw module parameters]: https://docs.ansible.com/ansible/latest/modules/ufw_module.html#parameters
* `ufw_rules`: List of firewall rules that will be run.
* Supported keys: `port`, `policy`, `proto` and `direction`.
* Default is the empty list.
* `ufw_logging`: The firewall log level.
* Default is `low`.
# Dependencies
None.
# Example Playbook
```yaml
- hosts: localhost
roles:
- role: ufw
ufw_rules:
- {'port': '80', 'rule': 'allow', 'proto': 'tcp', 'direction': 'in'}
- {'port': '80', 'rule': 'allow', 'proto': 'tcp', 'direction': 'out'}
ufw_log_level: low
```
# Testing
```bash
$ pip install --user pipenv
$ curl -sSL https://get.docker.com/ | sh
$ pipenv install --dev
$ pipenv run molecule test
```
# License
* https://www.gnu.org/licenses/gpl-3.0.en.html
# Author Information
* https://git.coop/homebrew-ansible
---
galaxy_info:
author: Homebrew Ansible.
author: decentral1se
description: A role to install and configure UFW.
license: GPLv3
min_ansible_version: 2.7
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: instance
image: debian:stretch
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
- destroy
- dependency
- syntax
- create
- prepare
- converge
- idempotence
- side_effect
- destroy
verifier:
name: testinfra
lint:
name: flake8
---
- name: Converge
hosts: all
roles:
- role: ufw
extends: default
rules:
braces:
max-spaces-inside: 1
level: error
brackets:
max-spaces-inside: 1
level: error
line-length: disable
[[source]]
url = "https://pypi.org/simple"
name = "pypi"
verify_ssl = true
[packages]
[dev-packages]
molecule = "*"
docker = "*"
This diff is collapsed.
......@@ -23,37 +23,3 @@ A role to manage user accounts.
* Default is `true`.
* `users_ssh_keys_path`: Where you store your ssh public key parts locally.
# Dependencies
None.
# Example Playbook
```yaml
- hosts: localhost
roles:
- role: users
users_usernames:
- foo
- bar
users_ssh_keys_path:
# includes foo.pub and bar.pub
- templates/ssh-keys
```
# Testing
```bash
$ pip install --user pipenv
$ pipenv install --dev
$ pipenv run molecule test
```
# License
* https://www.gnu.org/licenses/gpl-3.0.en.html
# Author Information
* https://git.coop/homebrew-ansible
---
galaxy_info:
author: Homebrew Ansible.
author: decentral1se
description: A role to manage user accounts.
license: GPLv3
min_ansible_version: 2.7
# Molecule managed
{% if item.registry is defined %}
FROM {{ item.registry.url }}/{{ item.image }}
{% else %}
FROM {{ item.image }}
{% endif %}
RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi