Merge lp://staging/~thomnico/orange-box-examples/telco into lp://staging/orange-box-examples

Proposed by Nicolas Thomas
Status: Merged
Merged at revision: 63
Proposed branch: lp://staging/~thomnico/orange-box-examples/telco
Merge into: lp://staging/orange-box-examples
Diff against target: 92 lines (+30/-31)
2 files modified
cloudfoundry/01-deploy.sh (+19/-2)
telco/sync-local-charms (+11/-29)
To merge this branch: bzr merge lp://staging/~thomnico/orange-box-examples/telco
Reviewer Review Type Date Requested Status
Darryl Weaver Pending
Review via email: mp+241256@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Nicolas Thomas (thomnico) wrote :
Download full text (5.6 KiB)

Darryl,

If you can skip adding the script
:'bin/orange-box-wildcard-dns-archive' right now ... to avoid
misunderstanding..

On Mon, Nov 10, 2014 at 11:58 AM, Nicolas Thomas
<email address hidden> wrote:
> Nicolas Thomas has proposed merging lp:~thomnico/orange-box-examples/telco into lp:orange-box-examples.
>
> Requested reviews:
> Darryl Weaver (dweaver)
>
> For more details, see:
> https://code.launchpad.net/~thomnico/orange-box-examples/telco/+merge/241256
> --
> https://code.launchpad.net/~thomnico/orange-box-examples/telco/+merge/241256
> You are the owner of lp:~thomnico/orange-box-examples/telco.
>
> === added file 'bin/orange-box-wildcard-dns-archive'
> --- bin/orange-box-wildcard-dns-archive 1970-01-01 00:00:00 +0000
> +++ bin/orange-box-wildcard-dns-archive 2014-11-10 10:57:16 +0000
> @@ -0,0 +1,73 @@
> +#!/bin/bash
> +#
> +# orange-box-wildcard-dns-archive
> +# Copyright (C) 2014 Canonical Ltd.
> +#
> +# Authors: Nicolas Thomas <email address hidden>
> +#
> +# This program is free software: you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation, version 3 of the License.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program. If not, see <http://www.gnu.org/licenses/>.
> +
> +set -e
> +
> +fgrep "/etc/bind/named.conf.wildcard-archive" /etc/bind/named.conf > /dev/null && (echo "already applied" ; exit 2)
> +
> +if [ "$(id -u)" != "0" ]; then
> + echo "Must be run with sudo or by root"
> + exit 77
> +fi
> +
> +cat > /etc/bind/named.conf.wildcard-archive <<EOF
> +# Zone declarations.
> +zone "archive.ubuntu.com" {
> + type master;
> + file "/etc/bind/zones.wildcard-archive";
> +};
> +
> +EOF
> +
> +## Need to create a dns entry to ensure *.archive.ubuntu.com resolve locally
> +## Many charms/packages/install rely on this /etc/hosts is not enough
> +
> +echo '$TTL 300' > /etc/bind/zones.wildcard-archive
> +cat >> /etc/bind/zones.wildcard-archive <<EOF
> +@ IN SOA archive.ubuntu.com ubuntu.com (
> + 999 ; serial
> + 600 ; Refresh
> + 1800 ; Retry
> + 604800 ; Expire
> + 300 ; TTL
> + )
> +
> + IN NS archive.ubuntu.com
> +
> +
> +archive.ubuntu.com IN A 10.14.4.1
> +
> +ns IN CNAME archive.ubuntu.com
> +
> +* IN A 10.14.4.1
> +
> +EOF
> +
> +
> +if ( fgrep ubuntu-cloud.archive.canonical.com /etc/hosts > /dev/null )
> +then
> + cat >> /etc/hosts <<EOF
> +10.14.4.1 archive.ubuntu.com ubuntu-cloud.archive.canonical.com
> +EOF
> +fi
> +
> +echo 'include "/etc/bind/named.conf.wildcard-archive";' >> /etc/bind/named.conf
> +service bind9 restart
> +
> +## Todo checking apache v site works for *.archive.ubuntu.com
>
> === modified file 'cloudfoundry/01-dep...

Read more...

62. By Nicolas Thomas

CI after re merge

63. By Nicolas Thomas

Merge and repush

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches