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:
    6:58 AM
    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
  2. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,086
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    3:58 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Nice :)
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @jeffwidman

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

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    6:58 AM
    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

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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