From 04b4150681410dc7812258351a5671b3fd19e895 Mon Sep 17 00:00:00 2001 From: Debora Benedetto <debora.benedetto@hpe.com> Date: Thu, 21 Jul 2022 17:59:52 +0200 Subject: [PATCH] added license to templates --- .../nginx_openstack/config.yaml | 5 ----- templates/ansible/centos/mysql.tpl | 16 ++++++++++++++++ templates/ansible/centos/postgres.tpl | 16 ++++++++++++++++ templates/ansible/centos/wordpress.tpl | 16 ++++++++++++++++ templates/ansible/ubuntu/config.tpl | 16 ++++++++++++++++ templates/ansible/ubuntu/inventory.tpl | 16 ++++++++++++++++ templates/ansible/ubuntu/mysql.tpl | 16 ++++++++++++++++ templates/ansible/ubuntu/nginx.tpl | 16 ++++++++++++++++ templates/ansible/ubuntu/postgres.tpl | 16 ++++++++++++++++ templates/ansible/ubuntu/wordpress.tpl | 16 ++++++++++++++++ templates/terraform/aws/init.tpl | 16 ++++++++++++++++ templates/terraform/aws/network.tpl | 16 ++++++++++++++++ templates/terraform/aws/port_rule.tpl | 16 ++++++++++++++++ templates/terraform/aws/virtual_machine.tpl | 16 ++++++++++++++++ templates/terraform/azure/init.tpl | 16 ++++++++++++++++ templates/terraform/azure/network.tpl | 16 ++++++++++++++++ templates/terraform/azure/resource_group.tpl | 16 ++++++++++++++++ templates/terraform/azure/virtual_machine.tpl | 16 ++++++++++++++++ templates/terraform/google_cloud/network.tpl | 16 ++++++++++++++++ templates/terraform/google_cloud/vm.tpl | 16 ++++++++++++++++ templates/terraform/open_stack/config.tpl | 16 ++++++++++++++++ templates/terraform/open_stack/init.tpl | 16 ++++++++++++++++ templates/terraform/open_stack/network.tpl | 16 ++++++++++++++++ templates/terraform/open_stack/port_rule.tpl | 16 ++++++++++++++++ templates/terraform/open_stack/ssh_key.tpl | 16 ++++++++++++++++ .../terraform/open_stack/virtual_machine.tpl | 16 ++++++++++++++++ .../terraform/open_stack/virtual_machine_out.tpl | 16 ++++++++++++++++ 27 files changed, 416 insertions(+), 5 deletions(-) delete mode 100644 output_files_generated/nginx_openstack/config.yaml diff --git a/output_files_generated/nginx_openstack/config.yaml b/output_files_generated/nginx_openstack/config.yaml deleted file mode 100644 index 6464675..0000000 --- a/output_files_generated/nginx_openstack/config.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -iac: -- terraform -- ansible -... \ No newline at end of file diff --git a/templates/ansible/centos/mysql.tpl b/templates/ansible/centos/mysql.tpl index fff1148..4faee5c 100644 --- a/templates/ansible/centos/mysql.tpl +++ b/templates/ansible/centos/mysql.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: DB become: yes diff --git a/templates/ansible/centos/postgres.tpl b/templates/ansible/centos/postgres.tpl index b4fa1e8..f9a2612 100644 --- a/templates/ansible/centos/postgres.tpl +++ b/templates/ansible/centos/postgres.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: DB become: yes diff --git a/templates/ansible/centos/wordpress.tpl b/templates/ansible/centos/wordpress.tpl index fecc1d5..2685e82 100644 --- a/templates/ansible/centos/wordpress.tpl +++ b/templates/ansible/centos/wordpress.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: APP1 become: yes diff --git a/templates/ansible/ubuntu/config.tpl b/templates/ansible/ubuntu/config.tpl index 5854518..b161cb4 100644 --- a/templates/ansible/ubuntu/config.tpl +++ b/templates/ansible/ubuntu/config.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- input: - instance_ip_{{ node.vm_name }} diff --git a/templates/ansible/ubuntu/inventory.tpl b/templates/ansible/ubuntu/inventory.tpl index acec5a8..4c7e43e 100644 --- a/templates/ansible/ubuntu/inventory.tpl +++ b/templates/ansible/ubuntu/inventory.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + [{{ "servers_for_" ~ name }}] {% raw %}{{ instance_ip_{% endraw %}{{ node.vm_name }} {% raw %}}}{% endraw %} diff --git a/templates/ansible/ubuntu/mysql.tpl b/templates/ansible/ubuntu/mysql.tpl index 38a8e83..cfac255 100644 --- a/templates/ansible/ubuntu/mysql.tpl +++ b/templates/ansible/ubuntu/mysql.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: DB become: yes diff --git a/templates/ansible/ubuntu/nginx.tpl b/templates/ansible/ubuntu/nginx.tpl index 1d9b287..c3d9dcc 100644 --- a/templates/ansible/ubuntu/nginx.tpl +++ b/templates/ansible/ubuntu/nginx.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: {{ "servers_for_" ~ name }} gather_facts: no diff --git a/templates/ansible/ubuntu/postgres.tpl b/templates/ansible/ubuntu/postgres.tpl index b8de484..d59f60b 100644 --- a/templates/ansible/ubuntu/postgres.tpl +++ b/templates/ansible/ubuntu/postgres.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: DB become: yes diff --git a/templates/ansible/ubuntu/wordpress.tpl b/templates/ansible/ubuntu/wordpress.tpl index 774efd7..11031c3 100644 --- a/templates/ansible/ubuntu/wordpress.tpl +++ b/templates/ansible/ubuntu/wordpress.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- - hosts: APP1 become: yes diff --git a/templates/terraform/aws/init.tpl b/templates/terraform/aws/init.tpl index 0298118..68288d7 100644 --- a/templates/terraform/aws/init.tpl +++ b/templates/terraform/aws/init.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + terraform { required_providers { aws = { diff --git a/templates/terraform/aws/network.tpl b/templates/terraform/aws/network.tpl index b43dba4..20c8201 100644 --- a/templates/terraform/aws/network.tpl +++ b/templates/terraform/aws/network.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + resource "aws_vpc" "{{infra_element_name}}" { cidr_block = "{{ addressRange }}" tags = { diff --git a/templates/terraform/aws/port_rule.tpl b/templates/terraform/aws/port_rule.tpl index 0f3d507..7d2f8f8 100644 --- a/templates/terraform/aws/port_rule.tpl +++ b/templates/terraform/aws/port_rule.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + # CREATING SECURITY_GROUP resource "aws_security_group" "{{ infra_element_name ~ "_security_group_rule" }}" { ## TOBECHANGE name = "{{ infra_element_name }}" diff --git a/templates/terraform/aws/virtual_machine.tpl b/templates/terraform/aws/virtual_machine.tpl index fcb6b4d..67d49a3 100644 --- a/templates/terraform/aws/virtual_machine.tpl +++ b/templates/terraform/aws/virtual_machine.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + resource "aws_instance" "{{name}}" { ami = "{{ os }}" instance_type = "{{ instance_type }}" diff --git a/templates/terraform/azure/init.tpl b/templates/terraform/azure/init.tpl index 33d115d..d7fcd6b 100644 --- a/templates/terraform/azure/init.tpl +++ b/templates/terraform/azure/init.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + terraform { required_providers { azurerm = { diff --git a/templates/terraform/azure/network.tpl b/templates/terraform/azure/network.tpl index b2ee446..ea77c4a 100644 --- a/templates/terraform/azure/network.tpl +++ b/templates/terraform/azure/network.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + ## VIRTUAL NETWORK resource "azurerm_virtual_network" "{{ name ~ "_vnetwork" }}" { name = "{{ name }}" diff --git a/templates/terraform/azure/resource_group.tpl b/templates/terraform/azure/resource_group.tpl index 1647b0c..b0af31d 100644 --- a/templates/terraform/azure/resource_group.tpl +++ b/templates/terraform/azure/resource_group.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + ## RESOURCE GROUP resource "azurerm_resource_group" "{{ name }}" { diff --git a/templates/terraform/azure/virtual_machine.tpl b/templates/terraform/azure/virtual_machine.tpl index eac12cd..a830a7a 100644 --- a/templates/terraform/azure/virtual_machine.tpl +++ b/templates/terraform/azure/virtual_machine.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + ## CREATE VM resource "azurerm_linux_virtual_machine" "{{ name }}" { ## REQUIRED resource_group_name = azurerm_resource_group.rg.{{ resource_group_name }} diff --git a/templates/terraform/google_cloud/network.tpl b/templates/terraform/google_cloud/network.tpl index d10bf4a..245fb57 100644 --- a/templates/terraform/google_cloud/network.tpl +++ b/templates/terraform/google_cloud/network.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + resource "google_compute_network" "vpc_network" { name = "{{ network }}" } diff --git a/templates/terraform/google_cloud/vm.tpl b/templates/terraform/google_cloud/vm.tpl index 76e706f..bd42a80 100644 --- a/templates/terraform/google_cloud/vm.tpl +++ b/templates/terraform/google_cloud/vm.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + resource "google_compute_instance" "{{ default }}" { name = "{{ name }}" machine_type = "{{ machine_type }}" diff --git a/templates/terraform/open_stack/config.tpl b/templates/terraform/open_stack/config.tpl index 83b68b7..c0f56cf 100644 --- a/templates/terraform/open_stack/config.tpl +++ b/templates/terraform/open_stack/config.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + --- engine: terraform input: diff --git a/templates/terraform/open_stack/init.tpl b/templates/terraform/open_stack/init.tpl index e72aeca..515d44e 100644 --- a/templates/terraform/open_stack/init.tpl +++ b/templates/terraform/open_stack/init.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + terraform { required_version = ">= 0.14.0" required_providers { diff --git a/templates/terraform/open_stack/network.tpl b/templates/terraform/open_stack/network.tpl index 201c03c..09fa764 100644 --- a/templates/terraform/open_stack/network.tpl +++ b/templates/terraform/open_stack/network.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + ## Network # Create Network diff --git a/templates/terraform/open_stack/port_rule.tpl b/templates/terraform/open_stack/port_rule.tpl index c6bb14b..3d7b10e 100644 --- a/templates/terraform/open_stack/port_rule.tpl +++ b/templates/terraform/open_stack/port_rule.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + # CREATING SECURITY_GROUP {% for key, value in context().items() %}{% if not callable(value)%} {%if value.kind and value.kind is defined %} resource "openstack_compute_secgroup_v2" "{{ key }}" { diff --git a/templates/terraform/open_stack/ssh_key.tpl b/templates/terraform/open_stack/ssh_key.tpl index b436217..a8850d9 100644 --- a/templates/terraform/open_stack/ssh_key.tpl +++ b/templates/terraform/open_stack/ssh_key.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + # Create ssh keys resource "openstack_compute_keypair_v2" "{{ infra_element_name }}" { name = "{{ user }}" diff --git a/templates/terraform/open_stack/virtual_machine.tpl b/templates/terraform/open_stack/virtual_machine.tpl index c283198..68e6f9b 100644 --- a/templates/terraform/open_stack/virtual_machine.tpl +++ b/templates/terraform/open_stack/virtual_machine.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + # Create virtual machine resource "openstack_compute_instance_v2" "{{ infra_element_name }}" { name = "{{ vm_name }}" diff --git a/templates/terraform/open_stack/virtual_machine_out.tpl b/templates/terraform/open_stack/virtual_machine_out.tpl index 67de692..6df4079 100644 --- a/templates/terraform/open_stack/virtual_machine_out.tpl +++ b/templates/terraform/open_stack/virtual_machine_out.tpl @@ -1,3 +1,19 @@ +{# Copyright 2022 Hewlett Packard Enterprise Development LP +# +# 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. +#------------------------------------------------------------------------- +#} + output "instance_server_public_key_{{ vm_key_name }}" { value = openstack_compute_keypair_v2.{{ credentials }}.public_key } -- GitLab