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 |
Related bugs: |
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.
Darryl,
If you can skip adding the script box-wildcard- dns-archive' right now ... to avoid
:'bin/orange-
misunderstanding..
On Mon, Nov 10, 2014 at 11:58 AM, Nicolas Thomas /code.launchpad .net/~thomnico/ orange- box-examples/ telco/+ merge/241256 /code.launchpad .net/~thomnico/ orange- box-examples/ telco/+ merge/241256 box-wildcard- dns-archive' box-wildcard- dns-archive 1970-01-01 00:00:00 +0000 box-wildcard- dns-archive 2014-11-10 10:57:16 +0000 box-wildcard- dns-archive www.gnu. org/licenses/>. named.conf. wildcard- archive" /etc/bind/ named.conf > /dev/null && (echo "already applied" ; exit 2) named.conf. wildcard- archive <<EOF ubuntu. com" { zones.wildcard- archive" ; ubuntu. com resolve locally packages/ install rely on this /etc/hosts is not enough zones.wildcard- archive zones.wildcard- archive <<EOF cloud.archive. canonical. com /etc/hosts > /dev/null ) cloud.archive. canonical. com named.conf. wildcard- archive" ;' >> /etc/bind/ named.conf ubuntu. com 01-dep. ..
<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:/
> --
> https:/
> You are the owner of lp:~thomnico/orange-box-examples/telco.
>
> === added file 'bin/orange-
> --- bin/orange-
> +++ bin/orange-
> @@ -0,0 +1,73 @@
> +#!/bin/bash
> +#
> +# orange-
> +# 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://
> +
> +set -e
> +
> +fgrep "/etc/bind/
> +
> +if [ "$(id -u)" != "0" ]; then
> + echo "Must be run with sudo or by root"
> + exit 77
> +fi
> +
> +cat > /etc/bind/
> +# Zone declarations.
> +zone "archive.
> + type master;
> + file "/etc/bind/
> +};
> +
> +EOF
> +
> +## Need to create a dns entry to ensure *.archive.
> +## Many charms/
> +
> +echo '$TTL 300' > /etc/bind/
> +cat >> /etc/bind/
> +@ 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-
> +then
> + cat >> /etc/hosts <<EOF
> +10.14.4.1 archive.ubuntu.com ubuntu-
> +EOF
> +fi
> +
> +echo 'include "/etc/bind/
> +service bind9 restart
> +
> +## Todo checking apache v site works for *.archive.
>
> === modified file 'cloudfoundry/