Configure autossh service from attributes or LWRP.
The following platforms and versions are tested and supported using Opscode's test-kitchen.
Debian 8
Key | Type | Description |
---|---|---|
[autossh] |
Hash | Hash of autossh services to deploy: {} ) |
Include autossh
in your node's run_list
to install autossh package:
{
"name":"my_node",
"run_list": [
"recipe[autossh]"
]
}
Include autossh::services
in your node's run_list
to deploy autossh services:
{
"name":"my_node",
"run_list": [
"recipe[autossh]",
"recipe[autossh::services]"
],
"attributes": {
"autossh": {
"kitchen": {
"ssh_host": "localhost",
"lport": 42,
"rport": 22,
"luser": "kitchen",
"ruser": "kitchen"
}
}
}
}
This LWRP can be used to deploy autossh services.
Action | Description |
---|---|
:create |
Create an autossh service |
:delete |
Disable service and delete systemd file |
Attribute | Type | Description |
---|---|---|
bin |
String | Path to autossh |
flags |
String | Flags to pass to autossh command |
ssh_host |
String | SSH host to connect |
ssh_port |
Integer | SSH port to connect |
bind |
String | Bind address on remote host |
lport |
Integer | Local port of the reverse ssh |
rport |
Integer | Remote port of the reverse ssh |
luser |
String | Local user to connect to the host |
ruser |
String | Remote user to connect to |
autossh_service 'kitchen' do
ssh_host 'localhost'
lport 42
rport 22
luser 'kitchen'
ruser 'kitchen'
end
See TESTING.md
See CONTRIBUTING.md
Authors: Sliim sliim@mailoo.org
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.