diff --git a/.github/workflows/ce-provision-build-docs.yml b/.github/workflows/ce-provision-build-docs.yml deleted file mode 100644 index fc7286a73..000000000 --- a/.github/workflows/ce-provision-build-docs.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Build docs - -# Run this workflow every time a new commit pushed to your repository -on: pull_request - -jobs: - # Set the job key. The key is displayed as the job name - # when a job name is not provided - build-docs: - # Name the Job - name: Build the documentation - # Set the type of machine to run on - runs-on: ubuntu-20.04 - - steps: - # Checks out a copy of your repository on the ubuntu-latest machine - - name: Checkout code - if: ${{ github.event.pull_request.head.ref != 'documentation' }} - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - # Configures global Git variables for committing - - name: Configure Git - run: | - git config --global user.email "sysadm@codeenigma.com" - git config --global user.name "Code Enigma CI" - git config --global pull.rebase false - - # Builds the docs - - name: Build documentation - if: ${{ github.event.pull_request.head.ref != 'documentation' && github.event.pull_request.base.ref == '1.x' }} - run: | - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} - git fetch - /bin/sh ./contribute/toc.sh - find . -name "*.md" | xargs git add - git diff --quiet && git diff --staged --quiet || git commit -am 'GitHub Actions - Rebuilt documentation.' - git pull origin documentation - git push origin HEAD:documentation - shell: bash - - # Create docs pull request - - name: Create a documentation pull request - if: ${{ github.event.pull_request.head.ref != 'documentation' && github.event.pull_request.base.ref == '1.x' }} - uses: repo-sync/pull-request@v2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - source_branch: documentation - destination_branch: ${{ github.event.pull_request.base.ref }} - pr_title: Documentation update. - pr_body: "**Automated pull request** created by GitHub Actions because of a documentation update." diff --git a/.github/workflows/ce-provision-publish-docs.yml b/.github/workflows/ce-provision-publish-docs.yml index 2745fc41b..dceaf2687 100644 --- a/.github/workflows/ce-provision-publish-docs.yml +++ b/.github/workflows/ce-provision-publish-docs.yml @@ -51,8 +51,10 @@ jobs: /usr/bin/git push # Create docs pull request - - name: Create a documentation pull request - run: gh pr create --base ${{ github.event.pull_request.base.ref }} --head docs-${{ github.event.pull_request.base.ref }} --title "Documentation update" --body "**Automated pull request** created by GitHub Actions because of a documentation update." + - name: Create documentation pull requests + run: | + gh pr create --base ${{ github.event.pull_request.base.ref }} --head docs-${{ github.event.pull_request.base.ref }} --title "Documentation update - ${{ github.event.pull_request.base.ref }}" --body "**Automated pull request** created by GitHub Actions because of a documentation update." || echo "No commits between ${{ github.event.pull_request.base.ref }} and docs-${{ github.event.pull_request.base.ref }} - no PR created!" + gh pr create --base devel-${{ github.event.pull_request.base.ref }} --head docs-${{ github.event.pull_request.base.ref }} --title "Documentation update - devel-${{ github.event.pull_request.base.ref }}" --body "**Automated pull request** created by GitHub Actions because of a documentation update." || echo "No commits between devel-${{ github.event.pull_request.base.ref }} and docs-${{ github.event.pull_request.base.ref }} - no PR created!" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/_Sidebar.md b/docs/_Sidebar.md index db7194657..540826797 100644 --- a/docs/_Sidebar.md +++ b/docs/_Sidebar.md @@ -3,101 +3,101 @@ - [Install](install) - [Usage](scripts) - [Roles](roles) - - [AWS Infrastructure](roles/aws) - - [AWS ACL](roles/aws/aws_acl) - - [AWS Certificate Manager](roles/aws/aws_acm) - - [AWS AMI ASG Cleanup](roles/aws/aws_ami_asg_cleanup) - - [AWS AMI](roles/aws/aws_ami) - - [AWS Backup](roles/aws/aws_backup) - - [AWS Backup Validation](roles/aws/aws_backup_validation) - - [AWS CloudFront distribution](roles/aws/aws_cloudfront_distribution) - - [Cloudwatch log group](roles/aws/aws_cloudwatch_log_group) - - [Amazon credentials](roles/aws/aws_credentials) - - [Autoscale cluster](roles/aws/aws_ec2_autoscale_cluster) - - [EC2 CloudWatch Metric Alarm](roles/aws/aws_ec2_metric_alarm) - - [EC2 instance with EIP](roles/aws/aws_ec2_with_eip) - - [AWS EFS](roles/aws/aws_efs) - - [AWS ElastiCache](roles/aws/aws_elasticache) - - [AWS IAM EC2](roles/aws/aws_iam_role) - - [AWS IAM SAML](roles/aws/aws_iam_saml) - - [AWS Network Info](roles/aws/_aws_network_info) - - [AWS OpenSearch](roles/aws/aws_opensearch) - - [AWS key pair.](roles/aws/aws_provision_ec2_keypair) - - [AWS RDS](roles/aws/aws_rds) - - [AWS Resource Group.](roles/aws/aws_resource_group) - - [AWS S3 Bucket](roles/aws/aws_s3_bucket) - - [AWS Security Groups](roles/aws/aws_security_groups) - - [AWS SG/firewall role](roles/aws/aws_sg_iptables) - - [AWS SNS](roles/aws/aws_sns) - - [VPC](roles/aws/aws_vpc) - - [Update main route for a given VPC](roles/aws/aws_vpc_route) - - [VPC](roles/aws/aws_vpc_subnet) - - [Contributed roles](roles/contrib) - - [Debian Packages](roles/debian) - - [Ansible Galaxy](roles/debian/ansible_galaxy) - - [Ansible](roles/debian/ansible) - - [APACHE](roles/debian/apache) - - [Apparmor](roles/debian/apparmor) - - [Extra packages](roles/debian/apt_extra_packages) - - [APT Repository](roles/debian/apt_repository) - - [APT Unattended Upgrades](roles/debian/apt_unattended_upgrades) - - [AWS CLI](roles/debian/aws_cli) - - [AWS Cloudwatch agent](roles/debian/aws_cloudwatch_agent) - - [EFS client](roles/debian/aws_efs_client) - - [AWS SSM agent](roles/debian/aws_ssm_agent) - - [ce-deploy](roles/debian/ce_deploy) - - [Extra packages](roles/debian/ce_dev) - - [Automated patching](roles/debian/ce_patcher) - - [ce-provision](roles/debian/ce_provision) - - [ClamAV](roles/debian/clamav) - - [Docker CE](roles/debian/docker_ce) - - [Docker Registry](roles/debian/docker_registry) - - [Duplicity](roles/debian/duplicity) - - [Firewall Config](roles/debian/firewall_config) - - [Frontail](roles/debian/frontail) - - [Gitlab](roles/debian/gitlab) - - [Gitlab Runner](roles/debian/gitlab_runner) - - [GPG Key](roles/debian/gpg_key) - - [HA Proxy](roles/debian/haproxy) - - [Managed /etc/hosts](roles/debian/hosts) - - [Jenkins](roles/debian/jenkins) - - [Jitsi](roles/debian/jitsi) - - [LDAP Server](roles/debian/ldap_server) - - [LHCI](roles/debian/lhci) - - [Mailpit](roles/debian/mailpit) - - [Mount sync](roles/debian/mount_sync) - - [MariaDB Client](roles/debian/mysql_client) - - [MySQL Server - Oracle Community Edition](roles/debian/mysql_server_oracle_ce) - - [NGINX](roles/debian/nginx) - - [NodeJS](roles/debian/nodejs) - - [OpenVPN](roles/debian/openvpn) - - [Packer](roles/debian/packer) - - [PAM LinOTP](roles/debian/pam_linotp) - - [PHP terminal client](roles/debian/php-cli) - - [PHP common components](roles/debian/php-common) - - [PHP Composer](roles/debian/php_composer) - - [PHP-FPM](roles/debian/php-fpm) - - [phpMyAdmin](roles/debian/phpmyadmin) - - [PHP XDebug](roles/debian/php_xdebug) - - [Postfix](roles/debian/postfix) - - [Process Manager](roles/debian/process_manager) - - [Python Boto](roles/debian/python_boto) - - [Python Common](roles/debian/python_common) - - [Python Pip Packages](roles/debian/python_pip_packages) - - [rkhunter](roles/debian/rkhunter) - - [Rsyslog](roles/debian/rsyslog) - - [solr](roles/debian/solr) - - [SSHD](roles/debian/ssh_server) - - [SSL](roles/debian/ssl) - - [sudo config](roles/debian/sudo_config) - - [Swap](roles/debian/swap) - - [System](roles/debian/system) - - [User Ansible](roles/debian/user_ansible) - - [varnish_config](roles/debian/varnish_config) - - [wazuh](roles/debian/wazuh) - - [Init role](roles/_init) - - ["Meta" roles that group individual roles together.](roles/_meta) - - [AWS account](roles/_meta/aws_account) - - [AWS client](roles/_meta/aws_client_instance) - - [AWS region](roles/_meta/aws_region) - - [\_overrides.](roles/_overrides) + - [Init role](/roles/_init) + - ["Meta" roles that group individual roles together.](/roles/_meta) + - [AWS account](/roles/_meta/aws_account) + - [AWS client](/roles/_meta/aws_client_instance) + - [AWS region](/roles/_meta/aws_region) + - [\_overrides.](/roles/_overrides) + - [AWS Infrastructure](/roles/aws) + - [AWS Network Info](/roles/aws/_aws_network_info) + - [AWS ACL](/roles/aws/aws_acl) + - [AWS Certificate Manager](/roles/aws/aws_acm) + - [AWS AMI](/roles/aws/aws_ami) + - [AWS AMI ASG Cleanup](/roles/aws/aws_ami_asg_cleanup) + - [AWS Backup](/roles/aws/aws_backup) + - [AWS Backup Validation](/roles/aws/aws_backup_validation) + - [AWS CloudFront distribution](/roles/aws/aws_cloudfront_distribution) + - [Cloudwatch log group](/roles/aws/aws_cloudwatch_log_group) + - [Amazon credentials](/roles/aws/aws_credentials) + - [Autoscale cluster](/roles/aws/aws_ec2_autoscale_cluster) + - [EC2 CloudWatch Metric Alarm](/roles/aws/aws_ec2_metric_alarm) + - [EC2 instance with EIP](/roles/aws/aws_ec2_with_eip) + - [AWS EFS](/roles/aws/aws_efs) + - [AWS ElastiCache](/roles/aws/aws_elasticache) + - [AWS IAM EC2](/roles/aws/aws_iam_role) + - [AWS IAM SAML](/roles/aws/aws_iam_saml) + - [AWS OpenSearch](/roles/aws/aws_opensearch) + - [AWS key pair.](/roles/aws/aws_provision_ec2_keypair) + - [AWS RDS](/roles/aws/aws_rds) + - [AWS Resource Group.](/roles/aws/aws_resource_group) + - [AWS S3 Bucket](/roles/aws/aws_s3_bucket) + - [AWS Security Groups](/roles/aws/aws_security_groups) + - [AWS SG/firewall role](/roles/aws/aws_sg_iptables) + - [AWS SNS](/roles/aws/aws_sns) + - [VPC](/roles/aws/aws_vpc) + - [Update main route for a given VPC](/roles/aws/aws_vpc_route) + - [VPC](/roles/aws/aws_vpc_subnet) + - [Contributed roles](/roles/contrib) + - [Debian Packages](/roles/debian) + - [Ansible](/roles/debian/ansible) + - [Ansible Galaxy](/roles/debian/ansible_galaxy) + - [APACHE](/roles/debian/apache) + - [Apparmor](/roles/debian/apparmor) + - [Extra packages](/roles/debian/apt_extra_packages) + - [APT Repository](/roles/debian/apt_repository) + - [APT Unattended Upgrades](/roles/debian/apt_unattended_upgrades) + - [AWS CLI](/roles/debian/aws_cli) + - [AWS Cloudwatch agent](/roles/debian/aws_cloudwatch_agent) + - [EFS client](/roles/debian/aws_efs_client) + - [AWS SSM agent](/roles/debian/aws_ssm_agent) + - [ce-deploy](/roles/debian/ce_deploy) + - [Extra packages](/roles/debian/ce_dev) + - [Automated patching](/roles/debian/ce_patcher) + - [ce-provision](/roles/debian/ce_provision) + - [ClamAV](/roles/debian/clamav) + - [Docker CE](/roles/debian/docker_ce) + - [Docker Registry](/roles/debian/docker_registry) + - [Duplicity](/roles/debian/duplicity) + - [Firewall Config](/roles/debian/firewall_config) + - [Frontail](/roles/debian/frontail) + - [Gitlab](/roles/debian/gitlab) + - [Gitlab Runner](/roles/debian/gitlab_runner) + - [GPG Key](/roles/debian/gpg_key) + - [HA Proxy](/roles/debian/haproxy) + - [Managed /etc/hosts](/roles/debian/hosts) + - [Jenkins](/roles/debian/jenkins) + - [Jitsi](/roles/debian/jitsi) + - [LDAP Server](/roles/debian/ldap_server) + - [LHCI](/roles/debian/lhci) + - [Mailpit](/roles/debian/mailpit) + - [Mount sync](/roles/debian/mount_sync) + - [MariaDB Client](/roles/debian/mysql_client) + - [MySQL Server - Oracle Community Edition](/roles/debian/mysql_server_oracle_ce) + - [NGINX](/roles/debian/nginx) + - [NodeJS](/roles/debian/nodejs) + - [OpenVPN](/roles/debian/openvpn) + - [Packer](/roles/debian/packer) + - [PAM LinOTP](/roles/debian/pam_linotp) + - [PHP terminal client](/roles/debian/php-cli) + - [PHP common components](/roles/debian/php-common) + - [PHP-FPM](/roles/debian/php-fpm) + - [PHP Composer](/roles/debian/php_composer) + - [PHP XDebug](/roles/debian/php_xdebug) + - [phpMyAdmin](/roles/debian/phpmyadmin) + - [Postfix](/roles/debian/postfix) + - [Process Manager](/roles/debian/process_manager) + - [Python Boto](/roles/debian/python_boto) + - [Python Common](/roles/debian/python_common) + - [Python Pip Packages](/roles/debian/python_pip_packages) + - [rkhunter](/roles/debian/rkhunter) + - [Rsyslog](/roles/debian/rsyslog) + - [solr](/roles/debian/solr) + - [SSHD](/roles/debian/ssh_server) + - [SSL](/roles/debian/ssl) + - [sudo config](/roles/debian/sudo_config) + - [Swap](/roles/debian/swap) + - [System](/roles/debian/system) + - [User Ansible](/roles/debian/user_ansible) + - [varnish_config](/roles/debian/varnish_config) + - [wazuh](/roles/debian/wazuh)