This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Restructurations

  • Loading branch information...
BR0kEN- committed Nov 9, 2015
1 parent ec158e3 commit c4f4dd8b86e27c068a94b7022b7910b235c9e9ab
Showing with 148 additions and 2,020 deletions.
  1. +1 −1 .gitignore
  2. 0 LICENSE.txt → LICENSE
  3. +74 −0 ansible.sh
  4. 0 {github/files/drupal7 → files/drupal/7/docroot}/profiles/pp/pp.info
  5. 0 {github/files/drupal7 → files/drupal/7/docroot}/profiles/pp/pp.install
  6. 0 {github/files/drupal7 → files/drupal/7/docroot}/profiles/pp/pp.profile
  7. 0 {github/files/drupal7 → files/drupal/7}/scripts/README.reinstall.md
  8. 0 {github/files/drupal7 → files/drupal/7}/scripts/README.windows.md
  9. 0 { → files/drupal/7/scripts}/ansible.cfg
  10. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops.yml
  11. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/API.txt
  12. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/IGNOREME.txt
  13. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/LICENSE.txt
  14. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/README.txt
  15. 0 .../files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.drush.inc
  16. 0 ...b/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.help.inc
  17. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.inc
  18. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.info
  19. 0 ...ub/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.install
  20. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.js
  21. 0 ...hub/files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.module
  22. 0 .../files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/security_review.pages.inc
  23. 0 ...files/drupal7 → files/drupal/7}/scripts/devops/modules/security_review/tests/security_review.test
  24. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/database_backup.yml
  25. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/drush_commands.yml
  26. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/modules_enable.yml
  27. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/post_settings.yml
  28. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/pre_settings.yml
  29. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/prepare_environment.yml
  30. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/profile_workflow.yml
  31. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/sql_workflow.yml
  32. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/vars/environments/default_env.yml
  33. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/vars/environments/demo_env.yml
  34. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/vars/environments/global_env.yml
  35. 0 ...hub/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/vars/environments/production_env.yml
  36. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/vars/environments/staging_env.yml
  37. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/reinstall/vars/global_settings.yml
  38. 0 ...hub/files/drupal7 → files/drupal/7}/scripts/devops/roles/cibox-security-testing/defaults/main.yml
  39. 0 {github/files/drupal7 → files/drupal/7}/scripts/devops/roles/cibox-security-testing/tasks/main.yml
  40. 0 {github/files/drupal7 → files/drupal/7}/scripts/reinstall.sh
  41. 0 {github/files/drupal7 → files/drupal/7}/scripts/reinstall.yml
  42. 0 {github/files/drupal7 → files/drupal/7}/scripts/rundevops.sh
  43. 0 {github/files/drupal7 → files/drupal/7}/scripts/runsniffers.sh
  44. 0 {github/files/drupal7 → files/drupal/7}/scripts/runtests.sh
  45. 0 {github/files/drupal7 → files/drupal/7}/scripts/sniffers.yml
  46. 0 {github/files/drupal7 → files/drupal/7}/scripts/tests.yml
  47. 0 {github/files → files/drupal/7}/tests/behat/README.md
  48. 0 {github/files → files/drupal/7}/tests/behat/behat.yml.j2
  49. 0 {github/files → files/drupal/7}/tests/behat/composer.json
  50. 0 {github/files → files/drupal/7}/tests/behat/features/administration.feature
  51. 0 {github/files → files/drupal/7}/tests/behat/features/bootstrap/FeatureContext.php
  52. 0 {github/files → files/drupal/7}/tests/behat/features/frontpage.feature
  53. 0 {github/files → files/drupal/7}/tests/behat/features/registration.feature
  54. 0 {github/files → files/drupal/7}/tests/behat/resources/README.md
  55. BIN {github/files → files/drupal/7}/tests/behat/resources/druplicon.jpg
  56. 0 {github → files/drupal/7/tests/local_setup}/ansible.cfg
  57. 0 {github/files → files/drupal/7}/tests/local_setup/hosts
  58. 0 {github/files → files/drupal/7}/tests/local_setup/roles/ansible-behat-selenium2/defaults/main.yml
  59. 0 {github/files → files/drupal/7}/tests/local_setup/roles/ansible-behat-selenium2/tasks/chrome.yml
  60. 0 {github/files → files/drupal/7}/tests/local_setup/roles/ansible-behat-selenium2/tasks/debug.yml
  61. 0 {github/files → files/drupal/7}/tests/local_setup/roles/ansible-behat-selenium2/tasks/main.yml
  62. 0 {github/files → files/drupal/7}/tests/local_setup/roles/ansible-behat-selenium2/tasks/selenium.yml
  63. 0 {github/files → files/drupal/7}/tests/local_setup/roles/ansible-behat-selenium2/templates/xvfb.j2
  64. 0 {github/files → files/drupal/7}/tests/local_setup/runtests.sh
  65. 0 {github/files → files/drupal/7}/tests/local_setup/tests.yml
  66. +36 −0 files/vagrant/box/.gitignore
  67. 0 {github → }/files/vagrant/box/LICENSE
  68. 0 {github → }/files/vagrant/box/README.md
  69. 0 {github → }/files/vagrant/box/Vagrantfile
  70. 0 {github → }/files/vagrant/box/adminer.php
  71. +2 −0 files/vagrant/box/phpinfo.php
  72. 0 {github → }/files/vagrant/box/provisioning/ansible/composer.yml
  73. 0 {github → }/files/vagrant/box/provisioning/ansible/drush.yml
  74. 0 {github → }/files/vagrant/box/provisioning/ansible/memcached.yml
  75. 0 {github → }/files/vagrant/box/provisioning/ansible/misc.yml
  76. 0 {github → }/files/vagrant/box/provisioning/ansible/mysql.yml
  77. 0 {github → }/files/vagrant/box/provisioning/ansible/php-xdebug.yml
  78. 0 {github → }/files/vagrant/box/provisioning/ansible/php.yml
  79. 0 {github → }/files/vagrant/box/provisioning/ansible/run-ansible-playbook.sh
  80. 0 {github → }/files/vagrant/box/provisioning/ansible/run-drupal-playbook.sh
  81. 0 {github → }/files/vagrant/box/provisioning/ansible/sendmail.yml
  82. 0 {github → }/files/vagrant/box/provisioning/ansible/sniffers.yml
  83. 0 {github → }/files/vagrant/box/provisioning/ansible/solr.yml
  84. 0 {github → }/files/vagrant/box/provisioning/ansible/www.yml
  85. 0 {github → }/files/vagrant/box/provisioning/config.yaml
  86. 0 {github → }/files/vagrant/box/provisioning/files/dot/ssh/empty
  87. 0 {github → }/files/vagrant/box/provisioning/files/dot/ssh/id_rsa
  88. 0 {github → }/files/vagrant/box/provisioning/files/dot/ssh/id_rsa.pub
  89. 0 {github → }/files/vagrant/box/provisioning/files/dot/ssh/insecure_private_key
  90. 0 {github → }/files/vagrant/box/provisioning/files/exec-always/empty
  91. 0 {github → }/files/vagrant/box/provisioning/files/exec-once/empty
  92. 0 {github → }/files/vagrant/box/provisioning/files/varnish/drupal_vcl.vcl
  93. 0 {github → }/files/vagrant/box/provisioning/shell/ansible.sh
  94. 0 {github → }/files/vagrant/box/provisioning/shell/initial-setup.sh
  95. 0 {github → }/files/vagrant/box/provisioning/shell/os-detect.sh
  96. 0 {github → }/files/vagrant/box/provisioning/shell/self-promotion.txt
  97. +0 −192 github/files/drupal7/scripts/ansible.cfg
  98. +0 −5 github/files/drupal7/scripts/devops/.htaccess
  99. +0 −6 github/files/tests/behat/.gitignore
  100. +0 −192 github/files/tests/local_setup/ansible.cfg
  101. +0 −5 github/files/vagrant/box/.gitignore
  102. +0 −1 github/files/vagrant/box/phpinfo.php
  103. +0 −10 github/files/vagrant/box/provisioning/.gitattributes
  104. +0 −52 github/files/vagrant/box/provisioning/files/dot/.bash_aliases
  105. +0 −414 github/files/vagrant/box/provisioning/files/dot/.vimrc
  106. +0 −108 github/github.yml
  107. +0 −4 github/hosts
  108. +0 −41 github/library/ansible-xml/.travis.yml
  109. +0 −339 github/library/ansible-xml/LICENSE
  110. +0 −128 github/library/ansible-xml/README.md
  111. +0 −2 github/library/ansible-xml/ansible.cfg
  112. +0 −319 github/library/ansible-xml/library/xml
  113. +0 −9 github/library/ansible-xml/meta/main.yml
  114. +0 −5 github/library/ansible-xml/tests/README.md
  115. +0 −14 github/library/ansible-xml/tests/fixtures/ansible-xml-beers.xml
  116. +0 −28 github/library/ansible-xml/tests/fixtures/ansible-xml-tomcat-server.xml
  117. +0 −6 github/library/ansible-xml/tests/group_vars/all
  118. +0 −1 github/library/ansible-xml/tests/inventory
  119. +0 −14 github/library/ansible-xml/tests/test-require-valid-file.yml
  120. +0 −32 github/library/ansible-xml/tests/test-tomcat-server-xml.yml
  121. +0 −49 github/library/ansible-xml/tests/test.yml
  122. +0 −3 github/run.sh
  123. +0 −16 host_vars/104.131.20.201
  124. +0 −16 host_vars/178.62.153.157
  125. 0 hosts → inventory
  126. +0 −3 run.sh
  127. +34 −0 scripts/drupal.yml
  128. +1 −5 { → scripts}/jenkinsbox.yml
@@ -1 +1 @@
.idea/
.*
File renamed without changes.
@@ -0,0 +1,74 @@
#!/usr/bin/env bash

# Dependencies:
# - bash
# - cd
# - dirname
# - pwd
# - readlink
# - ls
# - time
# - eval
# - ansible-playbook

SELF_PATH=$(cd -P -- $(dirname -- ${0}) && pwd -P)

while [ -h "${SELF_PATH}" ]; do
# 1) cd to directory of the symlink
# 2) cd to the directory of where the symlink points
# 3) Get the pwd
# 4) Append the basename
SELF_PATH=$(cd $(dirname -- ${SELF_PATH}) && cd $(dirname -- $(readlink ${SELF_PATH})) && pwd)
done

cd ${SELF_PATH}

if [[ -z ${1} || ${1} == "--op" ]]; then
echo "Available operations:"
for operation in $(ls -A *.yml); do
echo "- ${operation%%.*}"
done
exit 0
fi

extra_vars=""
params=""

# Parse extra varaiables.
for ((i = 2; i <= $#; i++)); do
# Remove all data after "=" symbol.
var=${!i%=*}
val=${!i#*=}

if [ "${var}" == "${val}" ]; then
val="True"
fi

# Remove leading "--" from argument name.
var=${var#--}

for j in limit module-path inventory-file; do
if [ "${var}" == "${j}" ]; then
params+=" --${var}=${val}"
fi
done

# Replace all "-" by "_" in argument name.
var=${var//-/_}

if [[ ${val} != {* && ${val: -1} != "}" ]]; then
val="\"${val}\""
fi

extra_vars+="\"${var}\":${val},"
done

# Remove last comma.
extra_vars=${extra_vars%%,}

if [ -n "${extra_vars}" ]; then
params+=" --extra-vars='{${extra_vars}}'"
fi

export PYTHONUNBUFFERED=1
time eval "ansible-playbook -vvvv scripts/${1}.yml -i inventory ${params}"
File renamed without changes.
@@ -0,0 +1,36 @@
/*

!docroot/

# Ignore user generated content.
docroot/sites/*/files/
# Ignore any custom settings.
docroot/sites/*/settings*.php
# Build reports.
docroot/build_reports/

# Ansible playbooks.
!scripts/
# Behat tests.
!tests/
# Ansible provision scripts for machine.
!provisioning/

.*
~*

!*.md
!*.php

# Apache configurations.
!.htaccess
# Helper file that afect to "synchronize" task of Ansible.
!.rsync-filter

!composer.json

!.gitignore
!.gitsubmodules

!Vagrantfile
!LICENSE
@@ -0,0 +1,2 @@
<?php
phpinfo();

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c4f4dd8

Please sign in to comment.