Commit graph

24 commits

Author SHA1 Message Date
Lance Edgar c0eed0e969 Add rattail.deploy_machine_conf() for basic machine-wide rattail.conf 2019-09-12 14:53:35 -05:00
Lance Edgar faefb60cd6 Tweak backup scripts to ensure sudo -H is effectively in use 2019-09-11 19:28:58 -05:00
Lance Edgar 63b86593f1 Deploy generic rattail-backup script for backup apps 2019-09-11 18:36:43 -05:00
Lance Edgar 9adc5a5b79 Tweak how backups are configured, to be a tad more generic 2019-09-11 17:33:40 -05:00
Lance Edgar 74308b26a5 Add core rsync() function
also `agent_sudo()` i guess, but that whole thing is decidedly less convenient
now than it used to be.  need to figure out a way to temporarily enable agent
forwarding from within the fabric, if possible...
2019-09-09 14:19:26 -05:00
Lance Edgar 7fe63b9f19 Install python3-certbot-apache for debian 10
when applicable
2019-09-09 14:19:03 -05:00
Lance Edgar 039af4b394 Tweak mysql.sql() to allow suppressing echo and output
also install default-mysql-server now, per latest debian
2019-09-09 14:18:11 -05:00
Lance Edgar f787b3ad79 Add set_myhostname() and set_mydestination() for postfix 2019-09-09 14:17:49 -05:00
Lance Edgar fec1c66422 Fix bug for ssh.set_config() 2019-09-09 14:17:35 -05:00
Lance Edgar 6e5131ad46 Add libssl-dev dependency for borg 2019-09-05 19:05:40 -05:00
Lance Edgar 8221537728 Remove unused user kwarg to python.mkvirtualenv() function
guess that used to be a thing?  but no longer
2019-09-05 17:55:42 -05:00
Lance Edgar eae08ad5d4 Force using sudo "as root" for various mysql commands
this lets us leverage `/root/.my.cnf` b/c it uses `sudo -H`
2019-08-10 02:44:44 -05:00
Lance Edgar 3771688660 Add ssh.set_config() convenience function 2019-08-10 02:41:26 -05:00
Lance Edgar 5a7a122e2d Add mysql.table_exists() convenience function 2019-08-06 18:25:14 -05:00
Lance Edgar 72c03a8ac9 Add contains() and append() convenience functions
basically stolen from Fabric v1 source code
2019-07-23 19:07:14 -05:00
Lance Edgar bac78764d0 Fix how we run sudo commands as postgres user 2019-02-19 22:36:35 -06:00
Lance Edgar 0a33e7569b Add some cleanup functions for use when cloning rattail DBs
i.e. disable some email config
2019-02-19 22:15:16 -06:00
Lance Edgar bc4a8a686e Add functions to deploy, enable apache config files 2019-02-16 18:21:40 -06:00
Lance Edgar 05d6e093a7 Improve logic for locking down SSH config
what a tricky mess
2019-02-09 17:55:12 -06:00
Lance Edgar 93c2db902e Add basic support for installing CORE Office (aka. Fannie)
plus various other things, to that end
2019-02-09 17:20:46 -06:00
Lance Edgar bd4768839a Port logic for deploying a "backup" app 2019-01-06 14:14:47 -06:00
Lance Edgar c2fe7586da Port "most" of mysql logic from rattail-fabric
seems i maybe just forgot to commit this last time?
2019-01-06 14:14:21 -06:00
Lance Edgar 76ab2915c8 Add functions for cloning postgres DB 2018-12-03 22:14:55 -06:00
Lance Edgar e8769c8245 Initial commit; enough to prove concepts at least
was able to bootstrap a complete machine with this, although there's lots
missing yet...
2018-12-03 01:11:38 -06:00