Discover Centmin Mod today
Register Now

Ansible roles for installing/configuring Centminmod

Discussion in 'Add Ons' started by jeffwidman, Sep 29, 2015.

  1. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    5:24 PM
    I just open-sourced a bunch of my Ansible roles that I use for installing/configuring my Centminmod servers:

    jeffwidman/ansible-centminmod · GitHub

    There's also roles on my github profile for managing Tarsnap (backups), yum-cron, and my.cnf--all guaranteed to play nice together on centminmod servers.
     
    Last edited: Sep 29, 2015
    • Informative Informative x 2
  2. eva2000

    eva2000 Administrator Staff Member

    30,903
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    11:24 AM
    Nginx 1.13.x
    MariaDB 5.5
  3. pamamolf

    pamamolf Well-Known Member

    2,819
    251
    83
    May 31, 2014
    Ratings:
    +445
    Local Time:
    3:24 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Nice :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,903
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    11:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    @jeffwidman

    FYI, instead of running the install option 1 menu
    Code:
    ./centmin.sh
    you can also run install unattended
    Code:
    ./centmin.sh install
     
    • Informative Informative x 1
  5. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    5:24 PM
    Thanks for the heads up! Didn't realize that was possible. I doubt I'll change it though, as there's too much `magic` inside your bash script for me to be comfortable running it unattended on a production system. I run my Ansible playbooks against servers regularly, but rarely do a complete fresh centminmod install.
    Consider this a vote for you to switch things to Ansible... I think you'd get a ton more pull requests and flexibility--certainly you'd be able to drop a ton of bash script that is doing nothing more than trying to maintain idempotence as that work would be pushed onto the Ansible modules themselves. Plus it's remarkably easy for end-users to install/run ansible playbooks.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,903
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    11:24 AM
    Nginx 1.13.x
    MariaDB 5.5
    well for whatever reason i can't get my head around Ansible so not entirely sure other basic centmin mod users would either heh.

    much more comfortable with shell scripting.. Ansible would probably slow my Centmin Mod development to a crawl right now given my lack of free time as is heh