Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions docs/roles/_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ drupal:
- minute: "*/{{ 10 | random(start=1) }}"
job: cron
feature_branch: false # whether or not this build is a feature branch that should sync assets from another environment
# For syncing database and files on a feature branch initial build
mysql_sync: # see sync/database_sync for docs
databases: []
files_sync: # see sync/files_sync for docs
cleanup: true
directories: []
# For syncing database and files on a feature branch initial build - include all variables if used
mysql_sync: {} # see sync/database_sync for docs
# mysqldump_params: "{{ _mysqldump_params }}"
# cleanup: true
# archival_method: gzip
# databases: []
files_sync: {} # see sync/files_sync for docs
# unique_workspace: false
# cleanup: true
# directories: []
mautic:
image_path: "media/images"
force_install: false
Expand Down
3 changes: 2 additions & 1 deletion docs/roles/composer.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ composer:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -24,6 +24,7 @@ composer:
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []

```

<!--ENDROLEVARS-->
2 changes: 1 addition & 1 deletion docs/roles/config_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config_generate:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand Down
8 changes: 8 additions & 0 deletions docs/roles/config_generate/config_generate-drupal8.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ Generates settings.php file for Drupal 8.
<!--ENDTOC-->

<!--ROLEVARS-->
## Default variables
```yaml
config_generate_drupal:
# If you need to specify an exact file name for a template file to use for a build, you can do it here.
drupal_settings_file_name: settings.php
drush_settings_file_name: drush.yml
```

<!--ENDROLEVARS-->
3 changes: 2 additions & 1 deletion docs/roles/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -28,6 +28,7 @@ npm:
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []

```

<!--ENDROLEVARS-->
16 changes: 10 additions & 6 deletions roles/_init/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ drupal:
- minute: "*/{{ 10 | random(start=1) }}"
job: cron
feature_branch: false # whether or not this build is a feature branch that should sync assets from another environment
# For syncing database and files on a feature branch initial build
mysql_sync: # see sync/database_sync for docs
databases: []
files_sync: # see sync/files_sync for docs
cleanup: true
directories: []
# For syncing database and files on a feature branch initial build - include all variables if used
mysql_sync: {} # see sync/database_sync for docs
# mysqldump_params: "{{ _mysqldump_params }}"
# cleanup: true
# archival_method: gzip
# databases: []
files_sync: {} # see sync/files_sync for docs
# unique_workspace: false
# cleanup: true
# directories: []
mautic:
image_path: "media/images"
force_install: false
Expand Down
16 changes: 10 additions & 6 deletions roles/_init/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ drupal:
- minute: "*/{{ 10 | random(start=1) }}"
job: cron
feature_branch: false # whether or not this build is a feature branch that should sync assets from another environment
# For syncing database and files on a feature branch initial build
mysql_sync: # see sync/database_sync for docs
databases: []
files_sync: # see sync/files_sync for docs
cleanup: true
directories: []
# For syncing database and files on a feature branch initial build - include all variables if used
mysql_sync: {} # see sync/database_sync for docs
# mysqldump_params: "{{ _mysqldump_params }}"
# cleanup: true
# archival_method: gzip
# databases: []
files_sync: {} # see sync/files_sync for docs
# unique_workspace: false
# cleanup: true
# directories: []
mautic:
image_path: "media/images"
force_install: false
Expand Down
3 changes: 2 additions & 1 deletion roles/composer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ composer:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -24,6 +24,7 @@ composer:
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []

```

<!--ENDROLEVARS-->
4 changes: 2 additions & 2 deletions roles/composer/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ composer:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -16,4 +16,4 @@ composer:
# Specify any additional templates to generate, with src (template) and dest (file).
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []
templates: []
2 changes: 1 addition & 1 deletion roles/config_generate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config_generate:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand Down
8 changes: 8 additions & 0 deletions roles/config_generate/config_generate-drupal8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ Generates settings.php file for Drupal 8.
<!--ENDTOC-->

<!--ROLEVARS-->
## Default variables
```yaml
config_generate_drupal:
# If you need to specify an exact file name for a template file to use for a build, you can do it here.
drupal_settings_file_name: settings.php
drush_settings_file_name: drush.yml
```

<!--ENDROLEVARS-->
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config_generate_drupal:
# If you need to specify an exact file name for a template file to use for a build, you can do it here.
drupal_settings_file_name: settings.php
drush_settings_file_name: drush.yml
5 changes: 3 additions & 2 deletions roles/config_generate/config_generate-drupal8/tasks/drush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
src: '{{ item }}'
dest: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}/drush.yml"
with_first_found:
- "{{ playbook_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.drush.yml.j2"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.drush.yml"
- "{{ playbook_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.{{ config_generate_drupal.drush_settings_file_name }}.j2"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.{{ config_generate_drupal.drush_settings_file_name }}"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ config_generate_drupal.drush_settings_file_name }}"
- "drush.yml.j2"
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
src: "{{ item }}"
dest: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}/settings.php"
with_first_found:
- "{{ playbook_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.settings.php.j2"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.settings.php"
- "{{ playbook_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.{{ config_generate_drupal.drupal_settings_file_name }}.j2"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ build_type }}.{{ config_generate_drupal.drupal_settings_file_name }}"
- "{{ _ce_deploy_build_dir }}/{{ webroot }}/sites/{{ site.folder }}/{{ config_generate_drupal.drupal_settings_file_name }}"
- "settings.php.j2"
2 changes: 1 addition & 1 deletion roles/config_generate/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ config_generate:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand Down
4 changes: 2 additions & 2 deletions roles/live_symlink/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ live_symlink:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -15,4 +15,4 @@ live_symlink:
# Specify any additional templates to generate, with src (template) and dest (file).
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []
templates: []
3 changes: 2 additions & 1 deletion roles/npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -28,6 +28,7 @@ npm:
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []

```

<!--ENDROLEVARS-->
4 changes: 2 additions & 2 deletions roles/npm/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm:
# Specify any additional symlink to create, with src (target) and dest (link).
# src: can be either absolute or relative to the dest (eg. '/var/my_data', '/home/deploy/simplesaml', '../../../myconfig')
# dest: can only be relative to the root of your repository (eg. 'www/themes/myassets', 'var/cache')
# create: wether to create the target if it does not exists.
# create: whether to create the target if it does not exists.
# - src: '/home/{{ deploy_user }}//{{ project_name }}_{{ build_type }}/simplesaml'
# dest: 'vendor/simplesamlphp/simplesamlphp/config'
# - src: '/var/simplesaml/etc'
Expand All @@ -20,4 +20,4 @@ npm:
# Specify any additional templates to generate, with src (template) and dest (file).
# src: name of a template, in the "templates" dir relative to your playbook.
# dest: can only be relative to the root of your repository (eg. 'www/config.php', 'var/mysettings.php')
templates: []
templates: []