Skip to content

**UNMAINTAINED/ABANDONED CODE / DO NOT USE ** Installation environment to work with corpusops ansible roles & playbooks

License

Notifications You must be signed in to change notification settings

corpusops/corpusops.bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CORPUS OPS BOOTSTRAP PACKAGE

DISCLAIMER

UNMAINTAINED/ABANDONED CODE / DO NOT USE

Due to the new EU Cyber Resilience Act (as European Union), even if it was implied because there was no more activity, this repository is now explicitly declared unmaintained.

The content does not meet the new regulatory requirements and therefore cannot be deployed or distributed, especially in a European context.

This repository now remains online ONLY for public archiving, documentation and education purposes and we ask everyone to respect this.

As stated, the maintainers stopped development and therefore all support some time ago, and make this declaration on December 15, 2024.

We may also unpublish soon (as in the following monthes) any published ressources tied to the corpusops project (pypi, dockerhub, ansible-galaxy, the repositories). So, please don't rely on it after March 15, 2025 and adapt whatever project which used this code.

INTRO

This packages helps to bring out a working ansible environment to bootstrap a whole modern infrastructure

Documentation topics

Galaxy

corpusops team normally add entries to this galaxy user.

Installing

note for OSX users: we won't install dependencies for you: you need virtualenv and a valid python installation.

mkdir corpusops
git clone https://github.com/corpusops/corpusops.bootstrap.git -b 4.0 corpusops/corpusops.bootstrap
corpusops/corpusops.bootstrap/bin/install.sh -l
corpusops/corpusops.bootstrap/bin/install.sh

It will in ./corpusops/corpusops.bootstrap:

  • download prerequisites packages for your distribution
  • Install a virtualenv with ansible
  • Download corpusops roles & playbooks

Note about branches and Versions

corpusops.bootstrap roles branch supported python version bundled ansible branch ansible requirements release year date docker tags
4.0 4.0 >=python-3.10 2.17 >= 2.10 2024 corpusops/ubuntu:24.04-2.17, corpusops/ubuntu:22.04-2.17, corpusops/debian:bookworm-2.17
3.0 2.0 >=python-3.9 2.14 >= 2.10 2021 corpusops/ubuntu:latest (ansible-2.14), corpusops/ubuntu:22.04-2.14, corpusops/ubuntu:20.04-2.14
2.0 2.0 python-3 2.10 2.9,2.10 2019 corpusops/ubuntu:22.04-2.10, corpusops/ubuntu:20.04-2.10, corpusops/ubuntu:18.04-2.10, corpusops/ubuntu:22.04-2.9, corpusops/ubuntu:20.04-2.9, corpusops/ubuntu:18.04-2.9
master master python-2.8 2.7 2.5, 2.7 2017 corpusops/ubuntu:20.04-2.7, corpusops/ubuntu:18.04-2.7

Upgrading from any branch

We provide a semi-automatic way to proceed to 4.0 upgrade not to break old installs, it's as simple as copying this in a terminal

# be sure to be on the latest changeset of the corpusops.bootstrap's local branch checkout
cd $corpusops_bootstrap && \
    git fetch origin && \
    ./bin/install.sh -C -b 4.0 --ansible-branch 2.17 --roles-branch 4.0 && \
    bin/install.sh -C && \
    rm -f .corpusops/*_branch

Ansible notes

badges

B S B S
4.0 .github/workflows/cicd.yml 3.0 .github/workflows/cicd.yml

Roles

Ansible preconfigured playbooks helpers

Ansible plugins roles

  • ansible_plugins: collections of lookup, plugins, and filters
    • debug
    • lsb_release
    • humanlog
    • actionhelper
    • jinjarender
    • include_jinja_vars
    • saltcall

Low level configuration roles

Role Role
vars
localsettings_apparmor localsettings_apparmor_vars
localsettings_autoupgrades localsettings_autoupgrades_vars
localsettings_basepkgs localsettings_basepkgs_vars
localsettings_dns localsettings_dns_vars
localsettings_editor localsettings_editor_vars
localsettings_etckeeper localsettings_etckeeper_vars
localsettings_git localsettings_git_vars
localsettings_golang localsettings_golang_vars
localsettings_jdk localsettings_jdk_vars
localsettings_locales localsettings_locales_vars
localsettings_nscd localsettings_nscd_vars
localsettings_pkgmgr localsettings_pkgmgr_vars
localsettings_profile localsettings_profile_vars
localsettings_screen localsettings_screen_vars
localsettings_ssh localsettings_ssh_vars
localsettings_sudo localsettings_sudo_vars
localsettings_sysctls localsettings_sysctls_vars
localsettings_timezone localsettings_timezone_vars
localsettings_vim localsettings_vim_vars
localsettings_packer localsettings_packer_vars
localsettings_nodejs localsettings_nodejs_vars

Services configuration roles

Role Role
services_base_cron services_base_cron_vars
services_base_ntp services_base_ntp_vars
services_base_sshd services_base_sshd_vars
services_magicbridge services_magicbridge_vars
services_misc_robotframework services_misc_robotframework_vars
services_misc_xvfb services_misc_xvfb_vars
services_virt_docker services_virt_docker_vars
services_virt_lxc services_virt_lxc_vars
services_virt_lxc

Helpers

Role role
corpusops.lxc_create corpusops.lxc_sshauth
corpusops.lxc_drop
corpusops.lxc_register corpusops.lxc_sync
corpusops.lxc_snapshot corpusops.lxc_vars
corpusops.nginx_vhost
switch_to_systemd_resolved supervisor
ssl_selfsigned_cert sshkeys
sslcerts set_alternatives
ssl_ca_signed_cert get_secret_variable
ssh_synckeys docker_compose_service

DB related roles

Role role
mysql_db postgresql_db
mysql_harden_user postgresql_extensions
mysql_role postgresql_install_postgis
postgresql_dropreset_db_encoding postgresql_privs
postgresql_role

burp (backup) related roles

Role role
burp_client_configuration burp_fw
burp_client_configuration_vars burp_plugins
burp_client_server burp_server_configuration
burp_client_server_vars burp_sign

About

**UNMAINTAINED/ABANDONED CODE / DO NOT USE ** Installation environment to work with corpusops ansible roles & playbooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published