From 3d3f3d4525a823d243d3254a3c03a194ba252394 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Wed, 12 Feb 2014 12:11:28 +0200 Subject: Makefile: include network and openssh modules --- acf2/modules/openssh.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 acf2/modules/openssh.lua (limited to 'acf2/modules/openssh.lua') diff --git a/acf2/modules/openssh.lua b/acf2/modules/openssh.lua new file mode 100644 index 0000000..458d2d7 --- /dev/null +++ b/acf2/modules/openssh.lua @@ -0,0 +1,28 @@ +--[[ +Copyright (c) 2013 Natanael Copa +Copyright (c) 2013-2014 Kaarle Ritvanen +See LICENSE file for license details +--]] + +local M = require('acf2.model') + +local Sshd = M.service('sshd') +Sshd.root_login = M.Boolean{ + addr='PermitRootLogin', ui_name='Permit root login', default=true +} +Sshd.password_auth = M.Boolean{ + addr='PasswordAuthentication', + ui_name='Password authentication', + default=true +} +Sshd.use_dns = M.Boolean{addr='UseDNS', ui_name='Use DNS', default=true} +Sshd.agent_forward = M.Boolean{ + addr='AllowAgentForwarding', ui_name='Allow agent forwarding', default=true +} + +M.register( + 'sshd', + Sshd, + {addr='/augeas/etc/ssh/sshd_config', ui_name='SSH daemon'} +) +M.permission.defaults('/sshd') -- cgit v1.2.3