SOLVED How would you automate the configuration of many settings within FusionPBX after installation?

Status
Not open for further replies.

hfoster

Active Member
Jan 28, 2019
677
80
28
34
Just looking to put some ideas on to paper about how I would go about automating numerous changes to the out of box FusionPBX installation, ready for a customer to use. Currently, it's a little bit of a manual affair where I have a little checklist of variables, default settings, permissions, dialplan tweaks and menu changes I need to make. All good, but it is a bit slow, and if I forget something like a recording permission, then inevitably a customer admin fills up their instance with recordings and then moan when I take it away without them paying. It would be nice to have something a bit reliable where I can run the fusionpbx-installer and then the hfoster-customiser right after.

My ideas so far:

1. Master database dump. Load the database every single time. I'm not sure how much of a future problem it would be if all the UUIDs were the same across instances. Potential for me to miss out on new default settings or permissions if I'm not careful.

2. A ton of sed edits on various files, especially app_defaults.php. How stable would this remain? Will I have to be modifying these sed lines a lot?

3. Maintaining a private fork, and trying to match upstream as best as possible. Is this a lot of work to undertake for some minor changes?

Any ideas or thoughts are welcome. I'm not expecting a simple answer, but maybe something that just lights the way.
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,414
376
83
I tend to use...
  • shell scripts for installing additional packages and setting up jobs and background processes - cron jobs etc.
  • sed for modifying exiting config files, and especially provision templates.
  • SQL - a lot of SQL queries for modifying just about everything else.

I'm beginning to think that rather then maintain a private fork of fusion, and as we still don't have a stable release, I will just implement my own version, after all, it is FreeSWITCH that actually does the work.
 
  • Like
Reactions: ricktendo

hfoster

Active Member
Jan 28, 2019
677
80
28
34
Cheers Adrian, good to hear I wasn't missing anything obvious. I think I might aim to keep it as light as possible on the changes, might even try to upstream some of my changes. Thankfully, touch wood I haven't had to make any modifications to the Yealink templates so far, so it's mainly just default settings, variables and the odd front end change (outbound route regex selector is a bit America-centric, ring groups are us-ring for ringback default, etc).
 
Status
Not open for further replies.