Lance Edgar
a1af0b131e
Only re-run 'mkvirtualenv' for backup app, if it doesn't exist
2020-09-28 16:02:17 -05:00
Lance Edgar
775b0eed29
Improve support for installing backup env as 'rattail' user
2020-09-28 15:49:15 -05:00
Lance Edgar
7bf892d1c6
Make 'gperf' a pre-requisite for FreeTDS source install
2020-08-21 13:47:25 -05:00
Lance Edgar
37a58be51a
Backport some logic for installing node.js
2019-11-06 18:30:21 -06:00
Lance Edgar
f860b2185b
Deploy generic rattail-backup
script for backup apps
2019-09-11 18:36:17 -05:00
Lance Edgar
5df0e0d16f
Tweak how backups are configured, to be a tad more generic
2019-09-11 16:58:52 -05:00
Lance Edgar
2df0cf1b27
Honor the env.machine_is_live
flag in addition to env.server_is_live
...
in fact, prefer it
2019-09-07 19:40:10 -05:00
Lance Edgar
658bc3e4d2
Add mssql
module for "native" SQL Server ODBC driver
...
i.e. the one provided by Microsoft
2019-03-13 21:51:22 -05:00
Lance Edgar
c8e24a55cf
Prevent default use of shell when running commands as postgres
...
so that our sudoers config can work as expected
2019-02-22 15:28:06 -06:00
Lance Edgar
c87ef42bad
Fix how we run sudo commands as postgres user
...
per similar changes made in rattail-fabric2
2019-02-22 14:57:13 -06:00
Lance Edgar
2393374923
Tweak how 'env' is added to context for mako template upload
2019-02-19 21:44:26 -06:00
Lance Edgar
f20c7e4b52
Allow alternate python3 for backup app environment
2019-02-07 12:39:37 -06:00
Lance Edgar
0199902118
Add 'verbose' flag for installing custom python versions via pythonz
2019-01-25 17:57:24 -06:00
Lance Edgar
dcb2282172
Add basic support for 'pythonz' utility
2019-01-24 15:54:38 -06:00
Lance Edgar
1962b62f11
Add basic check-supervisor-process
script
...
for use with Shinken monitoring
2018-12-12 19:33:55 -06:00
Lance Edgar
d2f04b315a
Add apache.get_php_version()
convenience function
2018-12-12 18:28:41 -06:00
Lance Edgar
4344b2eae0
Tweak how we lock down SSH config
...
hopefully avoids some logic gaps where lock-down didn't happen
2018-12-12 18:28:20 -06:00
Lance Edgar
9ee36a3eb8
Update changelog
2018-12-01 02:26:40 -06:00
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