From 617bf74deb56a96a7d0c33503e97800672b19dca Mon Sep 17 00:00:00 2001 From: "Brandon B. Jozsa" <v1k0d3n@users.noreply.github.com> Date: Mon, 20 Feb 2017 10:08:18 -0500 Subject: [PATCH] add license headers to maas (#220) --- maas/Chart.yaml | 14 ++++++++++++++ maas/requirements.yaml | 14 ++++++++++++++ maas/templates/bin/_import-boot-resources.sh.tpl | 16 +++++++++++++++- maas/templates/bin/_job-readiness.sh.tpl | 14 ++++++++++++++ .../bin/_maas-region-controller.postinst.tpl | 14 ++++++++++++++ .../bin/_register-rack-controller.sh.tpl | 16 +++++++++++++++- maas/templates/bin/_start.sh.tpl | 15 +++++++++++++++ maas/templates/configmap-bin.yaml | 14 ++++++++++++++ maas/templates/configmap-etc.yaml | 14 ++++++++++++++ maas/templates/db-service.yaml | 14 ++++++++++++++ maas/templates/deploy-rack.yaml | 14 ++++++++++++++ maas/templates/deploy-region.yaml | 14 ++++++++++++++ maas/templates/etc/_postgresql-config.tpl | 14 ++++++++++++++ maas/templates/etc/_region-dns-config.tpl | 14 ++++++++++++++ maas/templates/etc/_secret.tpl | 14 ++++++++++++++ maas/tests/test-pxe-client.sh | 14 ++++++++++++++ maas/values.yaml | 16 +++++++++++++++- 17 files changed, 242 insertions(+), 3 deletions(-) diff --git a/maas/Chart.yaml b/maas/Chart.yaml index 628076dbb6..4c9d38ff0b 100755 --- a/maas/Chart.yaml +++ b/maas/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + description: Chart to run MaaS name: maas version: 0.1.0 diff --git a/maas/requirements.yaml b/maas/requirements.yaml index 4b15632039..53782e69b2 100644 --- a/maas/requirements.yaml +++ b/maas/requirements.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + dependencies: - name: helm-toolkit repository: http://localhost:8879/charts diff --git a/maas/templates/bin/_import-boot-resources.sh.tpl b/maas/templates/bin/_import-boot-resources.sh.tpl index 6dda0c1674..a4d4fabf94 100644 --- a/maas/templates/bin/_import-boot-resources.sh.tpl +++ b/maas/templates/bin/_import-boot-resources.sh.tpl @@ -1,5 +1,19 @@ #!/bin/sh +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -ex function check_for_download { @@ -33,4 +47,4 @@ maas login {{ .Values.credentials.admin_username }} http://{{ .Values.ui_service maas {{ .Values.credentials.admin_username }} boot-resources import # see if we can find > 0 images sleep {{ .Values.jobs.import_boot_resources.retry_timer }} -check_for_download \ No newline at end of file +check_for_download diff --git a/maas/templates/bin/_job-readiness.sh.tpl b/maas/templates/bin/_job-readiness.sh.tpl index 9eb9659fe4..d0d58dc8ff 100644 --- a/maas/templates/bin/_job-readiness.sh.tpl +++ b/maas/templates/bin/_job-readiness.sh.tpl @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + </dev/tcp/{{ .Values.ui_service_name }}.{{ .Release.Namespace }}/{{ .Values.network.port.service_gui }} && \ </dev/tcp/{{ .Values.db_service_name }}.{{ .Release.Namespace }}/{{ .Values.network.port.db_service }} && \ pg_isready -h {{ .Values.db_service_name }}.{{ .Release.Namespace }} && \ diff --git a/maas/templates/bin/_maas-region-controller.postinst.tpl b/maas/templates/bin/_maas-region-controller.postinst.tpl index bfabf0955a..d43d141e02 100644 --- a/maas/templates/bin/_maas-region-controller.postinst.tpl +++ b/maas/templates/bin/_maas-region-controller.postinst.tpl @@ -1,5 +1,19 @@ #!/bin/sh +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -ex . /usr/share/debconf/confmodule diff --git a/maas/templates/bin/_register-rack-controller.sh.tpl b/maas/templates/bin/_register-rack-controller.sh.tpl index 0c1d415a31..716c6cf896 100644 --- a/maas/templates/bin/_register-rack-controller.sh.tpl +++ b/maas/templates/bin/_register-rack-controller.sh.tpl @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -ex # show env @@ -21,4 +35,4 @@ do sleep 10 fi; -done; \ No newline at end of file +done; diff --git a/maas/templates/bin/_start.sh.tpl b/maas/templates/bin/_start.sh.tpl index a99555a73e..ec35e9776c 100644 --- a/maas/templates/bin/_start.sh.tpl +++ b/maas/templates/bin/_start.sh.tpl @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -ex if ! find "/etc/postgresql" -mindepth 1 -print -quit | grep -q .; then diff --git a/maas/templates/configmap-bin.yaml b/maas/templates/configmap-bin.yaml index a7bd3ff0f9..256b2014fb 100644 --- a/maas/templates/configmap-bin.yaml +++ b/maas/templates/configmap-bin.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ConfigMap metadata: diff --git a/maas/templates/configmap-etc.yaml b/maas/templates/configmap-etc.yaml index c93166b3e4..a9436b6699 100644 --- a/maas/templates/configmap-etc.yaml +++ b/maas/templates/configmap-etc.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: ConfigMap metadata: diff --git a/maas/templates/db-service.yaml b/maas/templates/db-service.yaml index 7f18ae56ed..bf410a548f 100644 --- a/maas/templates/db-service.yaml +++ b/maas/templates/db-service.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: Service metadata: diff --git a/maas/templates/deploy-rack.yaml b/maas/templates/deploy-rack.yaml index 9feed98e71..0549e04dc9 100644 --- a/maas/templates/deploy-rack.yaml +++ b/maas/templates/deploy-rack.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: extensions/v1beta1 kind: Deployment metadata: diff --git a/maas/templates/deploy-region.yaml b/maas/templates/deploy-region.yaml index d663ac051a..27100f2672 100644 --- a/maas/templates/deploy-region.yaml +++ b/maas/templates/deploy-region.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1beta1 kind: StatefulSet metadata: diff --git a/maas/templates/etc/_postgresql-config.tpl b/maas/templates/etc/_postgresql-config.tpl index 8f193da565..325a24bc65 100644 --- a/maas/templates/etc/_postgresql-config.tpl +++ b/maas/templates/etc/_postgresql-config.tpl @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # dbc_install: configure database with dbconfig-common? # set to anything but "true" to opt out of assistance dbc_install='true' diff --git a/maas/templates/etc/_region-dns-config.tpl b/maas/templates/etc/_region-dns-config.tpl index bfcdce4a7c..262abde91f 100644 --- a/maas/templates/etc/_region-dns-config.tpl +++ b/maas/templates/etc/_region-dns-config.tpl @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + options { directory "/var/cache/bind"; auth-nxdomain no; listen-on-v6 { any; }; diff --git a/maas/templates/etc/_secret.tpl b/maas/templates/etc/_secret.tpl index 14c823bc4a..318fb24279 100644 --- a/maas/templates/etc/_secret.tpl +++ b/maas/templates/etc/_secret.tpl @@ -1 +1,15 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + {{ .Values.secret }} diff --git a/maas/tests/test-pxe-client.sh b/maas/tests/test-pxe-client.sh index 34b65e57d4..191524b224 100755 --- a/maas/tests/test-pxe-client.sh +++ b/maas/tests/test-pxe-client.sh @@ -1,5 +1,19 @@ #!/bin/bash -x +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # this helps create a qemu client (not using kvm acceleration # so it doesn't conflict with virtualbox users) that can be # used to test that maas is working diff --git a/maas/values.yaml b/maas/values.yaml index fcf2570e5e..06ba0476ea 100644 --- a/maas/values.yaml +++ b/maas/values.yaml @@ -1,3 +1,17 @@ +# Copyright 2017 The Openstack-Helm Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Default values for maas. # This is a YAML-formatted file. # Declare variables to be passed into your templates. @@ -67,4 +81,4 @@ resources: cpu: "500m" requests: memory: "128Mi" - cpu: "500m" \ No newline at end of file + cpu: "500m"