Lance Edgar
17aa1365aa
Add convenience functions for sanitizing downloaded rattail DB
...
for sake of dev and testing
2018-11-21 23:49:02 -06:00
Lance Edgar
36493885e7
Let caller avoid "eager" strategy when installing pip
...
actually this pertains to the install of its dependencies
2018-11-18 13:34:52 -06:00
Lance Edgar
e3b635b760
Add pkg-config
as dependency for borg
...
it's required when building some python lib(s)
2018-10-21 18:27:21 -05:00
Lance Edgar
8643ae9626
Add function to install borg dependencies
...
not sure this is even worth fooling with? oh well, going with it for now
2018-10-21 17:58:50 -05:00
Lance Edgar
13712e987d
Let mkvirtualenv()
and pip()
accept a "runas" user arg
...
until now we have been running those commands as root, which is probably a big
no-no. this change allows for us to run as an arbitrary user (e.g. rattail)
2018-10-03 16:57:27 -05:00
Lance Edgar
96a475d0a6
Add apt.upgrade()
convenience function
...
this one just does the 'upgrade', but *not* the 'update'
2018-09-18 19:10:19 -05:00
Lance Edgar
a5b364a239
Allow use of pip and mkvirtualenv for non-root users
...
i.e. don't always use sudo, per caller preference
2018-09-06 11:41:35 -05:00
Lance Edgar
a920eebc4c
Use 0700 perms for backup-everything script
...
just in case it has secrets
2018-09-06 11:39:36 -05:00
Lance Edgar
12a29f2088
Tweak how postgresql version is detected
...
pattern match didn't work for the 10.5 version
2018-09-06 11:38:56 -05:00
Lance Edgar
190a8318cc
Let a postgres db download exclude some tables
2018-08-16 11:53:39 -05:00
Lance Edgar
440130439e
Echo error output to stderr when restoring postgres db
...
apparently one can run out of disk space and never know it, with default output
2018-08-16 11:52:10 -05:00
Lance Edgar
167140dce1
Don't necessarily upgrade 'six' when making virtualenv
2018-08-16 10:10:34 -05:00
Lance Edgar
9f29dc67d4
Add logic to deploy basic Luigi logging config
2018-08-09 15:12:55 -05:00
Lance Edgar
b554e40e7b
Stop adding "current user" to 'rattail' system group
...
not sure why i ever did that..? hopefully this is safe and can just delete
that code some day
2018-07-29 19:33:59 -05:00
Lance Edgar
31acf33465
Add mysql.script()
convenience function
2018-07-15 17:47:03 -05:00
Lance Edgar
de2318fd43
Add basic installer logic for Kimai time tracking app
2018-07-15 14:02:44 -05:00
Lance Edgar
bf366817d7
Use postconf -e
instead of our home-grown solution for that
2018-07-10 10:00:56 -05:00
Lance Edgar
e740a6ad31
Add --verbose
flag for backup-everything script
2018-07-09 21:24:30 -05:00
Lance Edgar
422abe25e1
Fix bug in pip()
2018-07-06 23:12:54 -05:00
Lance Edgar
e542f45638
Do *not* pass --upgrade
flag by default, for pip install
...
must now specify pip('pkg', upgrade=True) if you want an upgrade
2018-07-06 17:41:33 -05:00
Lance Edgar
c658cd5c38
Don't install 'rattail[db]' for backup app
...
i.e. only need to install rattail now, bug has been fixed
2018-07-05 22:06:49 -05:00
Lance Edgar
0abb0720a5
Fix how pip runs for backup-everything script
...
i.e. be sure to run as rattail user, or whatever the app uses
2018-07-05 21:48:56 -05:00
Lance Edgar
fa2f7dfcbd
Fix bug with pip() installer when upgrade_strategy = None
2018-07-05 15:34:43 -05:00
Lance Edgar
d519db62bd
Tweak backup-everything script just a bit more
...
check git status of rattail src prior to upgrading that, etc.
2018-07-05 15:06:34 -05:00
Lance Edgar
2fcb81e0ae
Allow more customization for backup app deployment
2018-07-05 13:19:20 -05:00
Lance Edgar
2a6b25215f
Add logic for deploying simple backup app
2018-07-05 12:40:36 -05:00
Lance Edgar
86429d4f06
Accept --upgrade-strategy
arg for pip()
and mkvirtualenv()
2018-07-05 02:26:10 -05:00
Lance Edgar
b3f4d1ea35
Add ejabberd.get_node_name()
2018-07-04 16:39:31 -05:00
Lance Edgar
372234f583
Add dpkg options to force 'confold' where applicable
...
i.e. what I tried to do a moment ago, I now have hopefully achieved...
2018-07-03 23:15:31 -05:00
Lance Edgar
394dd2e38e
Revert "Add --force-confold
flag for use with apt-get dist-upgrade
"
...
This reverts commit 09c3fca17c
.
whoops, might have got my commands mixed up there. need to test this yet
2018-07-03 23:10:32 -05:00
Lance Edgar
09c3fca17c
Add --force-confold
flag for use with apt-get dist-upgrade
...
for the occasional config file prompt, let's just be safe for now
2018-07-03 23:08:01 -05:00
Lance Edgar
bf4ac2f676
Let caller specify pip version when invoking python.mkvirtualenv()
2018-05-31 21:54:30 -05:00
Lance Edgar
2c5e073168
Overhaul some things to support a basic CORE Office install
2018-05-31 20:42:57 -05:00
Lance Edgar
a84d360509
Add freetds
module, for installing FreeTDS from source
2018-05-30 19:07:34 -05:00
Lance Edgar
85bcf57534
Fix init script for luigid, so it can stop daemon
2018-05-30 19:07:21 -05:00
Lance Edgar
dff44209d8
Add nginx mode for installing certbot
2018-03-15 03:46:47 -05:00
Lance Edgar
4af428db78
Always set PermitRootLogin
for sshd_config
...
it was only being set if the setting existed
2018-03-11 20:34:39 -05:00
Lance Edgar
38b99cd817
Fix encoding bug when uploading mako template
...
at least it seems like that was a bug. hopefully i didn't just break other things
2018-03-11 13:36:06 -05:00
Lance Edgar
11db1579c4
Add support for arbitrary port when downloading Postgres database
2018-03-09 17:15:55 -06:00
Lance Edgar
6f0b1318d5
Fix quoting bug for paths with spaces
2018-03-09 17:15:37 -06:00
Lance Edgar
90e5133995
Accept port arg when running postgresql script
2018-03-01 18:51:45 -06:00
Lance Edgar
764af27c31
Update changelog
2018-02-24 16:36:21 -06:00
Lance Edgar
40dbb595e9
Initial commit
...
mostly as-is, taken from `rattail.fablib` subpackage
2018-02-24 16:29:20 -06:00