Giter Club home page Giter Club logo

ansible-create-proxmox-centos7-ipa's Introduction

Deprecated by https://github.com/alexpdp7/alexpdp7/tree/master/personal_infra/playbooks/roles/proxmox_create_lxc , https://github.com/alexpdp7/alexpdp7/tree/master/personal_infra/playbooks/roles/join_ipa

Just a small task to provision a Proxmox LXC container joined to FreeIPA.

Typical Playbook usage:

---
- hosts: <promox host>
  tasks:
    - include_role:
        name: create-proxmox-centos7-ipa
      vars:
        hostname: <hostname>
        vmid: "{{ hostvars['<hostname>']['proxmox_vmid'] }}"
        root_password: "{{ hostvars['<hostname>']['root_password'] }}"
        ipa_domain: "{{ ipa_domain_name }}"
        ipa_username: admin
        ipa_password: "{{ ipa_admin_password }}"
        centos_version: 8  # 7 is the default

I keep IPA data on group_vars/all/(vars|vault) and proxmox_vmid/root_password on
host_vars/<host>/(vars|vault).

I only need a single line in the inventory for each host's hostname, and I put:

ansible_become: True
ansible_user: <my ipa username>

in the host's variables to connect.

I use DHCP/DNS so IP configuration is automatic and I can access the containers
using their hostname.

You can use extra vars such as memory/swap to set up memory and swap allocation
and extra_opts for extra options for pct_create.

You can use an "unprivileged" boolean parameter to create an unprivileged container
(with some Docker support), but at the moment this is not recommended due to:

https://bugzilla.proxmox.com/show_bug.cgi?id=2036
https://bugzilla.redhat.com/show_bug.cgi?id=1589968
https://bugs.centos.org/view.php?id=14897

Also, you cannot use ZFS mountpoints inside unprivileged containers, at least in EL8.

ansible-create-proxmox-centos7-ipa's People

Contributors

alexpdp7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.