From 418a82d6e604a663cccb89c1959692a6986f89e4 Mon Sep 17 00:00:00 2001 From: Adam Bergstein Date: Thu, 21 Jan 2016 20:48:58 -0500 Subject: [PATCH 1/4] Adding pa11y npm package for accessibility checking --- .travis.yml | 7 ++++++- example.config.yml | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b0d7453..ddebbca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,4 +21,9 @@ script: # Check the config file and drupal make file YAML syntax. - > - python -c "import yaml; yaml.load( open('example.config.yml', 'r'), Loader=yaml.CLoader )" \ No newline at end of file + python -c "import yaml; yaml.load( open('example.config.yml', 'r'), Loader=yaml.CLoader )" + + # Check proper install of packages. + - w3af_console -v + - pa11y + - nmap \ No newline at end of file diff --git a/example.config.yml b/example.config.yml index 149db5a..885bfe0 100644 --- a/example.config.yml +++ b/example.config.yml @@ -64,7 +64,8 @@ extra_packages: # `nodejs` must be in installed_extras for this to work. nodejs_version: "0.12" -nodejs_npm_global_packages: [] +nodejs_npm_global_packages: + - pa11y # `ruby` must be in installed_extras for this to work. ruby_install_gems_user: "{{ vagrant_user }}" From 8000b560776e548ff5df6b58fe71328db5dd5053 Mon Sep 17 00:00:00 2001 From: Adam Bergstein Date: Thu, 21 Jan 2016 20:55:10 -0500 Subject: [PATCH 2/4] pa11y check 2 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ddebbca..e40e94b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ script: - 'ansible-galaxy install -r provisioning/requirements.yml' # Run Ansible's syntax and playbook check on the main playbook. - - 'ansible-playbook -i "localhost," -c local provisioning/playbook.yml --syntax-check' + - 'ansible-playbook -i "localhost," -c local provisioning/playbook.yml' # Check the config file and drupal make file YAML syntax. - > From 05facbd2f8877cfff68a7f1bb7fab56fec8442b5 Mon Sep 17 00:00:00 2001 From: Adam Bergstein Date: Fri, 22 Jan 2016 13:05:07 -0500 Subject: [PATCH 3/4] Adding in PA11Y and Scrapy --- .travis.yml | 9 ++------- example.config.yml | 5 +++-- provisioning/playbook.yml | 6 ++---- provisioning/requirements.yml | 2 ++ 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index e40e94b..b0d7453 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,13 +17,8 @@ script: - 'ansible-galaxy install -r provisioning/requirements.yml' # Run Ansible's syntax and playbook check on the main playbook. - - 'ansible-playbook -i "localhost," -c local provisioning/playbook.yml' + - 'ansible-playbook -i "localhost," -c local provisioning/playbook.yml --syntax-check' # Check the config file and drupal make file YAML syntax. - > - python -c "import yaml; yaml.load( open('example.config.yml', 'r'), Loader=yaml.CLoader )" - - # Check proper install of packages. - - w3af_console -v - - pa11y - - nmap \ No newline at end of file + python -c "import yaml; yaml.load( open('example.config.yml', 'r'), Loader=yaml.CLoader )" \ No newline at end of file diff --git a/example.config.yml b/example.config.yml index 885bfe0..e57fd34 100644 --- a/example.config.yml +++ b/example.config.yml @@ -37,6 +37,8 @@ vagrant_cpus: 2 installed_extras: - nmap - w3af + - pa11y + - scrapy # w3af config. w3af_install_path: /usr/local/share/w3af @@ -64,8 +66,7 @@ extra_packages: # `nodejs` must be in installed_extras for this to work. nodejs_version: "0.12" -nodejs_npm_global_packages: - - pa11y +nodejs_npm_global_packages: [] # `ruby` must be in installed_extras for this to work. ruby_install_gems_user: "{{ vagrant_user }}" diff --git a/provisioning/playbook.yml b/provisioning/playbook.yml index c824bab..ff61a0e 100644 --- a/provisioning/playbook.yml +++ b/provisioning/playbook.yml @@ -20,14 +20,12 @@ # Conditionally-installed roles. - { role: jackl0phty.nmap, when: '"nmap" in installed_extras' } - { role: nerdstein.W3AF, when: '"w3af" in installed_extras' } + - { role: nerdstein.scrapy, when: '"scrapy" in installed_extras' } + - { role: nerdstein.pa11y, when: '"pa11y" in installed_extras' } # Roles for security and stability on production. - { role: geerlingguy.security, when: extra_security_enabled } tasks: - - name: Check if Drupal is already set up. - stat: "path={{ drupal_core_path }}/index.php" - register: drupal_site - - include: tasks/sshd.yml - include: tasks/extras.yml when: ansible_os_family == 'Debian' diff --git a/provisioning/requirements.yml b/provisioning/requirements.yml index 73f267b..0df2d89 100644 --- a/provisioning/requirements.yml +++ b/provisioning/requirements.yml @@ -8,3 +8,5 @@ - src: Stouts.python - src: jackl0phty.nmap - src: nerdstein.W3AF +- src: nerdstein.scrapy +- src: nerdstein.PA11Y From 8d48b0f1d956bf7707d3612602ef1b1b74c1aee3 Mon Sep 17 00:00:00 2001 From: Adam Bergstein Date: Fri, 22 Jan 2016 13:23:27 -0500 Subject: [PATCH 4/4] Adding in PA11Y and Scrapy 2 --- provisioning/playbook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioning/playbook.yml b/provisioning/playbook.yml index ff61a0e..0b8b533 100644 --- a/provisioning/playbook.yml +++ b/provisioning/playbook.yml @@ -21,7 +21,7 @@ - { role: jackl0phty.nmap, when: '"nmap" in installed_extras' } - { role: nerdstein.W3AF, when: '"w3af" in installed_extras' } - { role: nerdstein.scrapy, when: '"scrapy" in installed_extras' } - - { role: nerdstein.pa11y, when: '"pa11y" in installed_extras' } + - { role: nerdstein.PA11Y, when: '"pa11y" in installed_extras' } # Roles for security and stability on production. - { role: geerlingguy.security, when: extra_security_enabled }