Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

[READ-ONLY] Ansible role dealing with the setup of Cloud-init

Notifications You must be signed in to change notification settings

manala/ansible-role-cloud_init

Repository files navigation

#######################################################################################################

❗ DEPRECATION ❗

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Cloud_init Build Status

Report issues and send Pull Requests in the main Ansible Role repository

This role will deal with the configuration of Cloud-init.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.cloud_init

Using ansible galaxy requirements file:

- src: manala.cloud_init

Role Variables

Name Default Type Description
manala_cloud_init_install_packages ~ String Dependency packages to install
manala_cloud_init_install_packages_default ['cloud-init'] String Default dependency packages to install
manala_cloud_init_configs_exclusive false String Configs exclusivity
manala_cloud_init_configs_dir '/etc/cloud/cloud.cfg.d' String Configs directory path
manala_cloud_init_configs_template 'configs/empty.j2' Array Configs template path
manala_cloud_init_configs [] Array Configs collection

Configuration example

manala_cloud_init_configs:
  - file: 99_hostname.cfg
    config:
      - fqdn: delicious.manala.io
      - hostname: delicious

Example playbook

- hosts: all
  roles:
    - { role: manala.cloud_init }

Licence

MIT

Author information

Manala (http://www.manala.io/)