Merge ~cjwatson/turnip:launchpad-test-domain into turnip:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: eb66f7f50bda0ab63ec24c4950884498f571c4d0
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/turnip:launchpad-test-domain
Merge into: turnip:master
Diff against target: 94 lines (+18/-18)
4 files modified
charm/Makefile (+8/-8)
charm/turnip-pack-frontend-http/config.yaml (+3/-3)
charm/turnip-pack-frontend-ssh/config.yaml (+1/-1)
config.yaml (+6/-6)
Reviewer Review Type Date Requested Status
Adam Collard (community) Approve
Review via email: mp+368024@code.launchpad.net

Commit message

Handle renaming of launchpad.dev to launchpad.test

Launchpad's local deployments now use launchpad.test, so we should
follow suit.

To post a comment you must log in.
Revision history for this message
Adam Collard (adam-collard) wrote :

All the sed's!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/charm/Makefile b/charm/Makefile
index 3080fbd..2b01ef9 100644
--- a/charm/Makefile
+++ b/charm/Makefile
@@ -61,19 +61,19 @@ clean-%:
61 @echo "Cleaning $*..."61 @echo "Cleaning $*..."
62 @rm -rf dist/.built-$* dist/builds/$* $(PUBLISHDIR)/$*62 @rm -rf dist/.built-$* dist/builds/$* $(PUBLISHDIR)/$*
6363
64tmp/git.launchpad.dev.crt: | $(TMPDIR)64tmp/git.launchpad.test.crt: | $(TMPDIR)
65 openssl req -new -nodes -keyout tmp/git.launchpad.dev.key \65 openssl req -new -nodes -keyout tmp/git.launchpad.test.key \
66 -out tmp/git.launchpad.dev.csr -subj '/CN=git.launchpad.dev'66 -out tmp/git.launchpad.test.csr -subj '/CN=git.launchpad.test'
67 openssl x509 -req -days 365 -in tmp/git.launchpad.dev.csr \67 openssl x509 -req -days 365 -in tmp/git.launchpad.test.csr \
68 -signkey tmp/git.launchpad.dev.key -out $@68 -signkey tmp/git.launchpad.test.key -out $@
6969
70tmp/ssh-host-key: | $(TMPDIR)70tmp/ssh-host-key: | $(TMPDIR)
71 ssh-keygen -t rsa -b 2048 -f $@ -N ''71 ssh-keygen -t rsa -b 2048 -f $@ -N ''
7272
73bundle.yaml: bundle.yaml.in tmp/git.launchpad.dev.crt tmp/ssh-host-key73bundle.yaml: bundle.yaml.in tmp/git.launchpad.test.crt tmp/ssh-host-key
74 sed -e 's/%BUILD_LABEL%/$(BUILD_LABEL)/g' \74 sed -e 's/%BUILD_LABEL%/$(BUILD_LABEL)/g' \
75 -e "s/%SSL_KEY%/$$(base64 -w 0 <tmp/git.launchpad.dev.key)/g" \75 -e "s/%SSL_KEY%/$$(base64 -w 0 <tmp/git.launchpad.test.key)/g" \
76 -e "s/%SSL_CERT%/$$(base64 -w 0 <tmp/git.launchpad.dev.crt)/g" \76 -e "s/%SSL_CERT%/$$(base64 -w 0 <tmp/git.launchpad.test.crt)/g" \
77 -e "s/%PRIVATE_SSH_KEY%/$$(base64 -w 0 <tmp/ssh-host-key)/g" \77 -e "s/%PRIVATE_SSH_KEY%/$$(base64 -w 0 <tmp/ssh-host-key)/g" \
78 -e "s/%PUBLIC_SSH_KEY%/$$(base64 -w 0 <tmp/ssh-host-key.pub)/g" \78 -e "s/%PUBLIC_SSH_KEY%/$$(base64 -w 0 <tmp/ssh-host-key.pub)/g" \
79 bundle.yaml.in >bundle.yaml79 bundle.yaml.in >bundle.yaml
diff --git a/charm/turnip-pack-frontend-http/config.yaml b/charm/turnip-pack-frontend-http/config.yaml
index c40fe31..31f0476 100644
--- a/charm/turnip-pack-frontend-http/config.yaml
+++ b/charm/turnip-pack-frontend-http/config.yaml
@@ -5,15 +5,15 @@ options:
5 description: Smart HTTP service port.5 description: Smart HTTP service port.
6 openid_provider_root:6 openid_provider_root:
7 type: string7 type: string
8 default: https://testopenid.dev/8 default: https://testopenid.test/
9 description: URL to the OpenID provider to authenticate against.9 description: URL to the OpenID provider to authenticate against.
10 site_name:10 site_name:
11 type: string11 type: string
12 default: git.launchpad.dev12 default: git.launchpad.test
13 description: Public host name used for clone URLs in cgit.13 description: Public host name used for clone URLs in cgit.
14 main_site_root:14 main_site_root:
15 type: string15 type: string
16 default: https://launchpad.dev/16 default: https://launchpad.test/
17 description: Root URL to the associated main Launchpad instance.17 description: Root URL to the associated main Launchpad instance.
18 cgit_user:18 cgit_user:
19 type: string19 type: string
diff --git a/charm/turnip-pack-frontend-ssh/config.yaml b/charm/turnip-pack-frontend-ssh/config.yaml
index 56f96dc..1547271 100644
--- a/charm/turnip-pack-frontend-ssh/config.yaml
+++ b/charm/turnip-pack-frontend-ssh/config.yaml
@@ -13,5 +13,5 @@ options:
13 description: Base64 encoded public host ssh key.13 description: Base64 encoded public host ssh key.
14 authentication_endpoint:14 authentication_endpoint:
15 type: string15 type: string
16 default: http://xmlrpc-private.launchpad.dev:8087/authserver16 default: http://xmlrpc-private.launchpad.test:8087/authserver
17 description: XMLRPC auth17 description: XMLRPC auth
diff --git a/config.yaml b/config.yaml
index 0f9de44..db941a8 100644
--- a/config.yaml
+++ b/config.yaml
@@ -1,4 +1,4 @@
1authentication_endpoint: http://xmlrpc-private.launchpad.dev:8087/authserver1authentication_endpoint: http://xmlrpc-private.launchpad.test:8087/authserver
2pack_backend_host: localhost2pack_backend_host: localhost
3pack_backend_port: 194183pack_backend_port: 19418
4pack_frontend_port: 94184pack_frontend_port: 9418
@@ -10,12 +10,12 @@ repo_api_port: 19417
10smart_http_port: 941910smart_http_port: 9419
11smart_ssh_port: 942211smart_ssh_port: 9422
12moduli_path: /etc/ssh/moduli12moduli_path: /etc/ssh/moduli
13repo_store: /var/tmp/git.launchpad.dev13repo_store: /var/tmp/git.launchpad.test
14turnip_log_dir: ./14turnip_log_dir: ./
15virtinfo_endpoint: http://xmlrpc-private.launchpad.dev:8087/git15virtinfo_endpoint: http://xmlrpc-private.launchpad.test:8087/git
16cgit_exec_path: /usr/lib/cgit/cgit.cgi16cgit_exec_path: /usr/lib/cgit/cgit.cgi
17cgit_data_path: /usr/share/cgit17cgit_data_path: /usr/share/cgit
18cgit_secret_path: null18cgit_secret_path: null
19openid_provider_root: https://testopenid.dev/19openid_provider_root: https://testopenid.test/
20site_name: git.launchpad.dev20site_name: git.launchpad.test
21main_site_root: https://launchpad.dev/21main_site_root: https://launchpad.test/

Subscribers

People subscribed via source and target branches