Skip to content

Commit

Permalink
chore(release): 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed May 5, 2023
1 parent 78191e2 commit 3fa94fd
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.6.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.5.0...v1.6.0) (2023-05-05)


### Features

* Support creating users [#200](https://github.com/terraform-routeros/terraform-provider-routeros/issues/200) ([#201](https://github.com/terraform-routeros/terraform-provider-routeros/issues/201)) ([78191e2](https://github.com/terraform-routeros/terraform-provider-routeros/commit/78191e2038607af5081d06dfaabc208010f6d667))

## [1.5.0](https://github.com/terraform-routeros/terraform-provider-routeros/compare/v1.4.0...v1.5.0) (2023-05-04)


Expand Down
62 changes: 60 additions & 2 deletions docs/resources/ovpn_server.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,61 @@
# routeros_ovpn_server (Resource)
** A minimum version of RouterOS 7.8 is required to use this resource. **
##### *<span style="color:red">This resource requires a minimum version of RouterOS 7.8!</span>*

## Example Usage
```terraform
resource "routeros_ip_pool" "ovpn-pool" {
name = "ovpn-pool"
ranges = ["192.168.77.2-192.168.77.254"]
}
resource "routeros_system_certificate" "ovpn_ca" {
name = "OpenVPN-Root-CA"
common_name = "OpenVPN Root CA"
key_size = "prime256v1"
key_usage = ["key-cert-sign", "crl-sign"]
trusted = true
sign {
}
}
resource "routeros_system_certificate" "ovpn_server_crt" {
name = "OpenVPN-Server-Certificate"
common_name = "Mikrotik OpenVPN"
key_size = "prime256v1"
key_usage = ["digital-signature", "key-encipherment", "tls-server"]
sign {
ca = routeros_system_certificate.ovpn_ca.name
}
}
resource "routeros_ppp_profile" "test" {
name = "ovpn"
local_address = "192.168.77.1"
remote_address = "ovpn-pool"
use_upnp = "no"
}
resource "routeros_ppp_secret" "test" {
name = "user-test"
password = "123"
profile = routeros_ppp_profile.test.name
}
resource "routeros_ovpn_server" "server" {
enabled = true
certificate = routeros_system_certificate.ovpn_server_crt.name
auth = "sha256,sha512"
tls_version = "only-1.2"
default_profile = routeros_ppp_profile.test.name
}
# The resource should be created only after the OpenVPN server is enabled!
resource "routeros_interface_ovpn_server" "user1" {
name = "ovpn-in1"
user = "user1"
depends_on = [routeros_ovpn_server.server]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -35,4 +89,8 @@

- `id` (String) The ID of this resource.


## Import
Import is supported using the following syntax:
```shell
terraform import routeros_openvpn_server.server .
```
42 changes: 42 additions & 0 deletions docs/resources/system_user.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# routeros_system_user (Resource)


## Example Usage
```terraform
resource "routeros_system_user" "test" {
name = "test-user-1"
address = "0.0.0.0/0"
group = "read"
password = "secret"
comment = "Test User"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `group` (String) Name of the group the user belongs to.
- `name` (String) User name. Although it must start with an alphanumeric character, it may contain '*', '_', '.' and '@' symbols.

### Optional

- `address` (String) Host or network address from which the user is allowed to log in.
- `comment` (String)
- `disabled` (Boolean)
- `password` (String, Sensitive) User password. If not specified, it is left blank (hit [Enter] when logging in). It conforms to standard Unix characteristics of passwords and may contain letters, digits, '*' and '_' symbols.

### Read-Only

- `expired` (Boolean) Password expired.
- `id` (String) The ID of this resource.
- `last_logged_in` (String) Read-only field. Last time and date when a user logged in.

## Import
Import is supported using the following syntax:
```shell
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/user get [print show-ids]]
terraform import routeros_system_user.test *1
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "terraform-provider-routeros",
"version": "1.5.0",
"version": "1.6.0",
"repository": {
"type": "git",
"url": "https://github.com/terraform-routeros/terraform-provider-routeros"
Expand Down

0 comments on commit 3fa94fd

Please sign in to comment.