Skip to content

Commit

Permalink
Merge branch 'main' into #364-docs-previews
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee authored Aug 9, 2024
2 parents 3d875db + de23800 commit 89de35d
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
SERVERS = [
"backup-server",
{:name => "bugs", :codename => "jammy", :ports => [8080]},
"buildbot",
{:name => "buildbot", :codename => "noble"},
"cdn-logs",
{:name => "codespeed", :codename => "jammy"},
{:name => "consul", :codename => "jammy"},
Expand Down
4 changes: 3 additions & 1 deletion docs/guides/migration-recipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ index 68387c9..7a8ace1 100644
```
- The `/pathname/` can be determined by looking at the pillar data for backups, `pillar/prod/backup` using the
`source_directory` path for the given host (example: the `downloads` host uses `/srv/`)

- ```{note}
Don't forget to enable SSH forwarding to allow the `rsync` command to use the local SSH key to connect to the old host.
```
### Stop services on old host

1. SSH into `old-host`:
Expand Down
18 changes: 9 additions & 9 deletions pillar/prod/backup/buildbot.sls
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#backup:
# directories:
# python-buildbot-config:
# source_directory: /etc/buildbot/
# target_host: backup.sfo1.psf.io
# target_directory: /backup/buildbot
# target_user: buildbot
# frequency: hourly
# user: root
backup:
directories:
python-buildbot-config:
source_directory: /etc/buildbot/
target_host: backup.sfo1.psf.io
target_directory: /backup/buildbot
target_user: buildbot
frequency: hourly
user: root
7 changes: 7 additions & 0 deletions pillar/prod/backup/hg.sls
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ backup:
target_user: root
frequency: daily
user: root
hg-svn-config:
source_directory: /etc/apache2/svn_config/
target_host: backup.sfo1.psf.io
target_directory: /backup/hg-svn-config
target_user: root
frequency: daily
user: root
10 changes: 10 additions & 0 deletions salt/buildbot/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ buildbot-user:
- user: buildbot-user
- file: /srv

{# vagrant up fails due to this file not existing (see: https://github.com/python/psf-salt/pull/367#issuecomment-2218636563) #}
/srv/buildbot/master/twistd.log:
file.managed:
- user: buildbot
- group: buildbot
- mode: "0644"
- replace: False
- require:
- git: /srv/buildbot

update-master:
cmd.run:
- runas: buildbot
Expand Down
6 changes: 6 additions & 0 deletions salt/pythontest/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ inn2:
- user: www-data
- group: www-data

/nonexistent:
file.directory:
- user: nginx
- group: nginx
- mode: "0755"

testdata-repo:
git.latest:
- name: https://github.com/python/pythontestdotnet
Expand Down

0 comments on commit 89de35d

Please sign in to comment.