File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ * .log
Original file line number Diff line number Diff line change 1+ extends: default
2+
3+ rules:
4+ braces:
5+ max-spaces-inside: 1
6+ level: error
7+ brackets:
8+ max-spaces-inside: 1
9+ level: error
10+ line-length: disable
11+ # NOTE(retr0h): Templates no longer fail this lint rule.
12+ # Uncomment if running old Molecule templates.
13+ # truthy: disable
Original file line number Diff line number Diff line change 1+ # Molecule managed
2+
3+ {% if item .registry is defined %}
4+ FROM {{ item.registry.url }}/{{ item.image }}
5+ {% else %}
6+ FROM {{ item.image }}
7+ {% endif %}
8+
9+ RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates && apt-get clean; \
10+ elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python2-dnf bash && dnf clean all; \
11+ 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; \
12+ elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml && zypper clean -a; \
13+ elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \
14+ elif [ $(command -v xbps-install) ]; then xbps-install -Syu && xbps-install -y python sudo bash ca-certificates && xbps-remove -O; fi
Original file line number Diff line number Diff line change 1+ *******
2+ Docker driver installation guide
3+ *******
4+
5+ Requirements
6+ ============
7+
8+ * General molecule dependencies (see https://molecule.readthedocs.io/en/latest/installation.html)
9+ * Docker Engine
10+ * docker-py
11+ * docker
12+
13+ Install
14+ =======
15+
16+ $ sudo pip install docker-py
Original file line number Diff line number Diff line change 1+ ---
2+ dependency :
3+ name : galaxy
4+ driver :
5+ name : docker
6+ lint :
7+ name : yamllint
8+ platforms :
9+ - name : instance
10+ image : ubuntu:18.04
11+ provisioner :
12+ name : ansible
13+ lint :
14+ name : ansible-lint
15+ scenario :
16+ name : default
17+ verifier :
18+ name : testinfra
19+ lint :
20+ name : flake8
Original file line number Diff line number Diff line change 1+ ---
2+ - name : Converge
3+ hosts : all
4+ roles :
5+ - role : certbot_nginx
Original file line number Diff line number Diff line change 1+ import os
2+
3+ import testinfra .utils .ansible_runner
4+
5+ testinfra_hosts = testinfra .utils .ansible_runner .AnsibleRunner (
6+ os .environ ['MOLECULE_INVENTORY_FILE' ]).get_hosts ('all' )
7+
8+
9+ def test_certbot_is_installed (host ):
10+ certbot = host .package ("certbot" )
11+
12+ assert certbot .is_installed
13+ assert certbot .version .startswith ("0.31" )
14+
15+
16+ def test_certbot_nginx_is_installed (host ):
17+ certbot_nginx = host .package ("python-certbot-nginx" )
18+
19+ assert certbot_nginx .is_installed
20+ assert certbot_nginx .version .startswith ("0.31" )
You can’t perform that action at this time.
0 commit comments