Skip to content

provisioning_partition

The cake function provisioning_partition executes the Ansible role-partition, which formats and mounts additional disks.

Information

Key Value
Playbook path plays/provisioning/partition.yml
Role https://git.blunix.com/ansible-roles/role-partition
Tags https://git.blunix.com/ansible-roles/role-partition/-/tags
Defaults https://git.blunix.com/ansible-roles/role-partition/-/blob/master/defaults/main.yml
Config files Description
/etc/fstab Defines filesystems which are mounted at boot time

Example

inventory/group_vars/cus_www_prod_db.yml:

partition_disks:
  - name: "/dev/sdb"
    mkfs_opts: ""
    mount_opts: defaults
    path: /var/lib/mysql
    # Linux user id of mysql user
    owner: "110"
    # Linux group id of mysql user
    group: "116"
    mode: "0750"

Run with cake:

cake -f provisioning_partition -i pub