diff --git a/output_files_generated/nginx_openstack/config.yaml b/output_files_generated/nginx_openstack/config.yaml deleted file mode 100644 index 6464675fc28c7eb4c9e955f4184bf662c8f3f0a5..0000000000000000000000000000000000000000 --- 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 fff114876355f16e7a6c9a9d9cfda408c1d61957..4faee5c6e382d656295ae592546a2d3cd2b32a64 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 b4fa1e8da06274aa4f206034c783654cf9adc1a7..f9a26127e17464533f8e89b7a56cf4f4d55cab51 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 fecc1d516a22d4ddd4dcc014410d8c7a9674f4e0..2685e82b976d60e90bed7a3ee10d85f44cb04f08 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 58545185bc13f8390b3fca6c800450ee84885b0d..b161cb42c211543e239019bbdeed9573b1227f4e 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 acec5a89685f5c002e41118258a62e140b2eb5ec..4c7e43e6ed7864f8890276cc1c92d6b83a099151 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 38a8e8328dd02fa01e9c8baf86844b7c5869729b..cfac255eb8a5a25885b3ef04c42c29193d52c855 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 1d9b28751b2c9786d713a67ad686ef56a744694a..c3d9dcc29543a8fc9be1e27b2648c4cde5f114c0 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 b8de4847ff463eba8da70d6e01173ece82b10cbd..d59f60b956236fb3bb51052f4b73f699cb0197ea 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 774efd7c8a0fce99b2bdfec73dd108d19c77dc1d..11031c30546069aeaefd92195f4332693eeed81d 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 02981187f2e5449c04fd4d52dca691038151db68..68288d774a02743f4639a3465fc04b4f7b8c13f0 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 b43dba4bbbbf6165be5fbac8ae8d1aabaeeb52b5..20c82014f5920357724d72a5b7bed864f102a127 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 0f3d50713cd0d5e89d46a94912c93c4eb02ae726..7d2f8f81dda17604b1331844684ec2fe74360d78 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 fcb6b4ddf9b6198cf4024c37bb5fea69d3f06b25..67d49a3b3a95c34bc06252607a756754c657e6b6 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 33d115d37cfac2beb7a902455578140ecd19af0b..d7fcd6b6856f55951c419887240c26eeedce3e07 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 b2ee4468955c79e5e5c27c8440ae86bc4cb7c14e..ea77c4ad0e0503f7864c9ba5cdf9d4e96fbe3eb1 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 1647b0ce60bf16874c5eafd498dae30d6173369a..b0af31d4f5edfa0d0497c8914616360c24df2187 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 eac12cdb283ddcdff85069c351a0eaca47326b3c..a830a7a3930921483536b75d23d4ec052ff85794 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 d10bf4a1f283b2deeb1ffeb2847ae410755d48cf..245fb57b06ef52ce6779b30501073d08cac64058 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 76e706fd18c00fd744b4bab6455e9b2001a0f788..bd42a80121e3f5cb2cbe7c90ba219ede23f8b78d 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 83b68b73dc5a5abb3a6cbeb76a7eb565a1b9b658..c0f56cf15650523821796dc1c7099b8a5a9419a9 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 e72aeca9fdce777fc4861e007f96a84ca83842d5..515d44eed842e2f125918d4834038fb5807d08cc 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 201c03c5ef0e314711a95d93086e893bc7de5222..09fa76496bad14fbad02d377989cd6318f0cf0d9 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 c6bb14bc52414ac89842ff2b05152fbf0fc3461a..3d7b10e44b264d841d6f95559d57f51e62b972b7 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 b4362178deb60feaa89ad8aa9a57a3d4382a255e..a8850d9569c4db2342ca8db39fccbdbe8700887c 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 c283198470d544418c32607932c1dff0867c1f7f..68e6f9be458aa4ca8f7b188ed26e7e58dbe8915c 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 67de692d23e2e4aa6215cc85e6b1d20df344b09a..6df40799d46043989ebea90d54ad1e5fadf3f8db 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 }