Skip to content

Commit fb29dc7

Browse files
authored
add subcompartment provisioning support and v0.12 compatibility (#13)
Repository housekeeping: - add CHANGELOG.md - add .gitattributes file for standard line ending - add *.lock files to .gitignore Documentation update and usability enhancements: - general documentation update - clarify documentation regarding provider configuration requirements for OCI IAM resources - examples documentation update - variable type constraints and more sane default values - more reliable tests when `count`is used - Remove freeform tags "resource watermarks" - Change Copyright notice for 2021 Features and behaviour: - add subcompartment provisioning support and other v0.12 enhancements - Change required arguments on modules - add required arguments for iam-user and iam-compartment - add better outputs for all modules - remove deprecated interpolation syntax PR: #13 Signed-off-by: Çetin ARDAL <[email protected]>
1 parent 9708ce6 commit fb29dc7

31 files changed

+973
-393
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=4
2+
*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=4
3+
*.tf text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=4

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ terraform.tfvars
22
.terraform
33
*.tfstate
44
*.tfstate.backup
5+
*.lock
6+
7+
tests
8+
59
.DS_Store
10+
.vscode

CHANGELOG.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
2+
# Changelog
3+
4+
All notable changes to this project will be documented in this file.
5+
6+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and the versioning follows the [Semantic Versioning 2.0.0](https://semver.org/) specification.
7+
8+
Given a version number MAJOR.MINOR.PATCH:
9+
10+
- MAJOR version when making incompatible API changes,
11+
- MINOR version when adding functionality in a backwards compatible manner,
12+
- PATCH version when making backwards compatible bug fixes.
13+
14+
## [Unreleased]
15+
16+
### Changed
17+
18+
- bump Copyright notice to 2021
19+
20+
## [2.1.3] 2021-01-19
21+
22+
### Fixed
23+
24+
- update documentation links to use absolute paths (Terraform Registry do not support relative paths)
25+
- update image link
26+
27+
## [2.1.2] 2021-01-05
28+
29+
### Added
30+
31+
- clarify documentation regarding provider configuration requirements for OCI IAM resources (you must you home region)
32+
33+
## [2.1.1] 2020-12-22
34+
35+
### Added
36+
37+
- variables: type constraints defined for all variables,
38+
- variables: default value is `null` if there is no other advisable value,
39+
- ouputs: user_description output for iam-user module,
40+
- terraform and OCI terraform provider version pinning block,
41+
- examples: add a README
42+
43+
### Changed
44+
45+
Documentation update:
46+
47+
- update README files to use relative links for content coming from this repo
48+
- Update oci provider URL to registry.terraform.io
49+
- update the prerequisites and usage section for each submodule
50+
- add a column with default value for each variable
51+
52+
Resources:
53+
54+
- `count` tests with true/false for boolean variables,
55+
- `count` tests with null or variable length for arrays.
56+
57+
### Fixed
58+
59+
- iam-user: email can be empty if value is set to `null`
60+
61+
## [2.1.0] 2020-12-15
62+
63+
### Added
64+
65+
- More current README.md for the example folder. Also add a sample apply output.
66+
67+
#### Module - iam-compartment, iam-group, iam-dynamic-group
68+
69+
- More complete outputs. oci-compartment now also expose the parent compartment ocid,
70+
- add a new combined output name -> ocid
71+
72+
### Changed
73+
74+
#### Module - iam-compartment
75+
76+
- compartment_name and compartment_description are now mandatory (default value is null),
77+
- compartment_id is now optional: if the parent compartment ID is not specified, the compartment is created at the root level of the tenancy
78+
79+
#### Module - iam-user
80+
81+
- name and description are now mandatory (default value is null)
82+
83+
### Fixed
84+
85+
- update modules and examples to not use deprecated interpolation syntax anymore,
86+
- update examples to show how to use the 2.x.x features of this module.
87+
88+
## [2.0.1] 2020-12-14
89+
90+
### Added
91+
92+
- repo maintenance: starts this CHANGELOG.md
93+
- update README.md prerequisites section with the required Terraform and Terraform Provider versions
94+
95+
### Changed
96+
97+
- repo maintenance: updates Copyright to 2020
98+
- repo maintenance: .gitignore and .gitattributes adjusted files for cleaner repo
99+
100+
### Removed
101+
102+
- Resource "watermark" with freeform tags - may be reintroduced later in a more flexible manner

LICENSE.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
1+
// Copyright (c) 2018, 2021, Oracle and/or its affiliates.
22

33
This software is dual-licensed to you under the Universal Permissive License (UPL) or Apache License 2.0. See below for license terms. You may choose either license.
44
____________________________
55
The Universal Permissive License (UPL), Version 1.0
6-
Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
6+
// Copyright (c) 2018, 2021, Oracle and/or its affiliates.
77

88
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both
99

@@ -19,7 +19,7 @@ The above copyright notice and either this complete permission notice or at a mi
1919
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020

2121
The Apache Software License, Version 2.0
22-
Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
22+
// Copyright (c) 2018, 2021, Oracle and/or its affiliates.
2323

2424
Licensed under the Apache License, Version 2.0 (the "License"); You may not use this product except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. A copy of the license is also reproduced below. 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.
2525

0 commit comments

Comments
 (0)