]> git.proxmox.com Git - pmg-api.git/log
pmg-api.git
7 years agoPMG::Cluster::sync_config_from_master - try to use HostKeyAlias when possible
Dietmar Maurer [Tue, 11 Apr 2017 15:20:29 +0000 (17:20 +0200)]
PMG::Cluster::sync_config_from_master - try to use HostKeyAlias when possible

7 years agoPMG/DBTools.pm: use HostKeyAlias for ssh connection
Dietmar Maurer [Tue, 11 Apr 2017 15:09:41 +0000 (17:09 +0200)]
PMG/DBTools.pm: use HostKeyAlias for ssh connection

7 years agoPMG/Service/pmgtunnel.pm: use HostKeyAlias
Dietmar Maurer [Tue, 11 Apr 2017 15:01:02 +0000 (17:01 +0200)]
PMG/Service/pmgtunnel.pm: use HostKeyAlias

7 years agoPMG/Service/pmgtunnel.pm: avoid use of $cinfo->{remnodes}
Dietmar Maurer [Tue, 11 Apr 2017 14:49:49 +0000 (16:49 +0200)]
PMG/Service/pmgtunnel.pm: avoid use of $cinfo->{remnodes}

7 years agobin/pmgtunnel: new service to tunnel database connections
Dietmar Maurer [Tue, 11 Apr 2017 14:41:02 +0000 (16:41 +0200)]
bin/pmgtunnel: new service to tunnel database connections

7 years agoPMG::Cluster::sync_config_from_master - print note when local node is master
Dietmar Maurer [Tue, 11 Apr 2017 05:53:08 +0000 (07:53 +0200)]
PMG::Cluster::sync_config_from_master - print note when local node is master

7 years agopmgcm: add 'sync' command
Dietmar Maurer [Tue, 11 Apr 2017 05:33:50 +0000 (07:33 +0200)]
pmgcm: add 'sync' command

7 years agoPMG/DBTools.pm: new helper get_remote_time
Dietmar Maurer [Tue, 11 Apr 2017 05:32:53 +0000 (07:32 +0200)]
PMG/DBTools.pm: new helper get_remote_time

7 years agoPMG/Cluster.pm: use PMG::Utils::run_silent_cmd for ssh-keygen
Dietmar Maurer [Tue, 11 Apr 2017 04:53:30 +0000 (06:53 +0200)]
PMG/Cluster.pm: use PMG::Utils::run_silent_cmd for ssh-keygen

7 years agoPMG/API2/Cluster.pm: avoid call to PVE::INotify::read_file
Dietmar Maurer [Tue, 11 Apr 2017 04:45:20 +0000 (06:45 +0200)]
PMG/API2/Cluster.pm: avoid call to PVE::INotify::read_file

7 years agocorrectly initialize PMG::RESTEnvironment in CLI tools.
Dietmar Maurer [Tue, 11 Apr 2017 04:42:40 +0000 (06:42 +0200)]
correctly initialize PMG::RESTEnvironment in CLI tools.

7 years agobump version to 5.0-4
Dietmar Maurer [Mon, 10 Apr 2017 10:32:47 +0000 (12:32 +0200)]
bump version to 5.0-4

7 years agouse remove_tree instead of rmtree
Dietmar Maurer [Mon, 10 Apr 2017 10:02:28 +0000 (12:02 +0200)]
use remove_tree instead of rmtree

Note: parameter for rmtree are interpreted differently,
so old code did not work.

7 years agoPMG/API2/Cluster.pm: set protected flag
Dietmar Maurer [Mon, 10 Apr 2017 09:52:04 +0000 (11:52 +0200)]
PMG/API2/Cluster.pm: set protected flag

7 years agoPMG/API2/Cluster.pm: improve cluster join
Dietmar Maurer [Mon, 10 Apr 2017 08:57:32 +0000 (10:57 +0200)]
PMG/API2/Cluster.pm: improve cluster join

7 years agoPMG/DBTools.pm: add helpers for database synchronization
Dietmar Maurer [Mon, 10 Apr 2017 08:56:44 +0000 (10:56 +0200)]
PMG/DBTools.pm: add helpers for database synchronization

7 years agoPMG::Config::rewrite_config() - add force_restart option
Dietmar Maurer [Mon, 10 Apr 2017 08:54:49 +0000 (10:54 +0200)]
PMG::Config::rewrite_config() - add force_restart option

7 years agoPMG/Cluster.pm: improve sync_config_from_master
Dietmar Maurer [Mon, 10 Apr 2017 08:53:13 +0000 (10:53 +0200)]
PMG/Cluster.pm: improve sync_config_from_master

7 years agouse correct method to read csrf token ($read_csrf_secret)
Dietmar Maurer [Mon, 10 Apr 2017 06:48:48 +0000 (08:48 +0200)]
use correct method to read csrf token ($read_csrf_secret)

7 years agoPMG/Ticket.pm: use inotify to read keys
Dietmar Maurer [Fri, 7 Apr 2017 14:31:37 +0000 (16:31 +0200)]
PMG/Ticket.pm: use inotify to read keys

So that we detect key changes automatically.

7 years agoPMG/Ticket.pm: remove debug code
Dietmar Maurer [Fri, 7 Apr 2017 13:29:43 +0000 (15:29 +0200)]
PMG/Ticket.pm: remove debug code

7 years agoPMG/Cluster.pm: new helpers update_ssh_keys and sync_config_from_master
Dietmar Maurer [Fri, 7 Apr 2017 13:00:32 +0000 (15:00 +0200)]
PMG/Cluster.pm: new helpers update_ssh_keys and sync_config_from_master

7 years agoPMG/Cluster.pm: cleanups
Dietmar Maurer [Fri, 7 Apr 2017 07:53:23 +0000 (09:53 +0200)]
PMG/Cluster.pm: cleanups

7 years agoPMG/API2/Cluster.pm: complete cluster create, run as background task
Dietmar Maurer [Fri, 7 Apr 2017 06:32:01 +0000 (08:32 +0200)]
PMG/API2/Cluster.pm: complete cluster create, run as background task

7 years agomove get_full_service_state to PMG::Utils
Dietmar Maurer [Fri, 7 Apr 2017 05:02:12 +0000 (07:02 +0200)]
move get_full_service_state to PMG::Utils

7 years agoPMG/API2/Cluster.pm: write local cluster config after join
Dietmar Maurer [Thu, 6 Apr 2017 14:56:10 +0000 (16:56 +0200)]
PMG/API2/Cluster.pm: write local cluster config after join

7 years agoPMG/API2/Cluster.pm: add test if ip or name are already used
Dietmar Maurer [Thu, 6 Apr 2017 14:44:16 +0000 (16:44 +0200)]
PMG/API2/Cluster.pm: add test if ip or name are already used

7 years agoimplement cluster join - first version
Dietmar Maurer [Thu, 6 Apr 2017 14:32:43 +0000 (16:32 +0200)]
implement cluster join - first version

7 years agodepend on libpve-apiclient-perl
Dietmar Maurer [Thu, 6 Apr 2017 08:27:31 +0000 (10:27 +0200)]
depend on libpve-apiclient-perl

7 years agopmgcm.pm: improve API description
Dietmar Maurer [Thu, 6 Apr 2017 08:00:58 +0000 (10:00 +0200)]
pmgcm.pm: improve API description

7 years agopmgcm join_cmd: new helper
Dietmar Maurer [Thu, 6 Apr 2017 07:56:31 +0000 (09:56 +0200)]
pmgcm join_cmd: new helper

7 years agopmgcm: better output if local node is not part of a cluster
Dietmar Maurer [Thu, 6 Apr 2017 07:30:17 +0000 (09:30 +0200)]
pmgcm: better output if local node is not part of a cluster

7 years agorenamed: PMG/API2/ClusterConfig.pm -> PMG/API2/Cluster.pm, add join API
Dietmar Maurer [Thu, 6 Apr 2017 06:15:22 +0000 (08:15 +0200)]
renamed: PMG/API2/ClusterConfig.pm -> PMG/API2/Cluster.pm, add join API

7 years agoalso cache user config inside PMG::RESTEnvironment
Dietmar Maurer [Thu, 6 Apr 2017 05:46:18 +0000 (07:46 +0200)]
also cache user config inside PMG::RESTEnvironment

7 years agocorrectly use PMG::RESTEnvironment->get()
Dietmar Maurer [Thu, 6 Apr 2017 05:25:16 +0000 (07:25 +0200)]
correctly use PMG::RESTEnvironment->get()

7 years agoPMG/HTTPServer.pm: add safety check for master node
Dietmar Maurer [Thu, 6 Apr 2017 05:17:55 +0000 (07:17 +0200)]
PMG/HTTPServer.pm: add safety check for master node

We want to verify that we are on the master node.

7 years agoPMG/RESTEnvironment.pm: add RESTEnvironment class
Dietmar Maurer [Thu, 6 Apr 2017 05:03:00 +0000 (07:03 +0200)]
PMG/RESTEnvironment.pm: add RESTEnvironment class

7 years agodebian/postinst: try to correctly restart services on first install, cleanups
Dietmar Maurer [Wed, 5 Apr 2017 09:26:25 +0000 (11:26 +0200)]
debian/postinst: try to correctly restart services on first install, cleanups

7 years agoPMG/CLI/pmgconfig.pm: remove unused code
Dietmar Maurer [Wed, 5 Apr 2017 09:08:28 +0000 (11:08 +0200)]
PMG/CLI/pmgconfig.pm: remove unused code

7 years agobump version to 5.0-3
Dietmar Maurer [Wed, 5 Apr 2017 08:27:31 +0000 (10:27 +0200)]
bump version to 5.0-3

7 years agoPMG/API2/Services.pm: use rsyslog instead of syslog
Dietmar Maurer [Wed, 5 Apr 2017 05:48:42 +0000 (07:48 +0200)]
PMG/API2/Services.pm: use rsyslog instead of syslog

7 years agoPMG/API2/Services.pm: use 'ssh' instead of 'sshd'
Dietmar Maurer [Wed, 5 Apr 2017 05:45:24 +0000 (07:45 +0200)]
PMG/API2/Services.pm: use 'ssh' instead of 'sshd'

7 years agobin/pmgcm: start cluster management toolkit + API
Dietmar Maurer [Tue, 4 Apr 2017 09:11:15 +0000 (11:11 +0200)]
bin/pmgcm: start cluster management toolkit + API

7 years agoPMG/API2/Nodes.pm: add service parameter to syslog
Dietmar Maurer [Tue, 4 Apr 2017 04:11:27 +0000 (06:11 +0200)]
PMG/API2/Nodes.pm: add service parameter to syslog

7 years agodepend on pmg-docs, make /usr/share/pmg-docs/ accessible via https
Dietmar Maurer [Mon, 3 Apr 2017 13:28:50 +0000 (15:28 +0200)]
depend on pmg-docs, make /usr/share/pmg-docs/ accessible via https

7 years agoPMG/API2/Postfix.pm: improve postfix API, implement postcat
Dietmar Maurer [Mon, 3 Apr 2017 05:28:39 +0000 (07:28 +0200)]
PMG/API2/Postfix.pm: improve postfix API, implement postcat

7 years agoadd some postfix maintainance API calls
Dietmar Maurer [Sun, 2 Apr 2017 11:02:55 +0000 (13:02 +0200)]
add some postfix maintainance API calls

7 years agoPMG::Postfix::mailq - implement paging
Dietmar Maurer [Sun, 2 Apr 2017 09:03:08 +0000 (11:03 +0200)]
PMG::Postfix::mailq - implement paging

7 years agoPMG/API2/Postfix.pm: allow arbitrary text filters
Dietmar Maurer [Sun, 2 Apr 2017 06:58:35 +0000 (08:58 +0200)]
PMG/API2/Postfix.pm: allow arbitrary text filters

And match sender and receiver.

7 years agoPMG/API2/Postfix.pm: add API for mailq
Dietmar Maurer [Sat, 1 Apr 2017 12:18:24 +0000 (14:18 +0200)]
PMG/API2/Postfix.pm: add API for mailq

7 years agoinstall missing package files
Dietmar Maurer [Sat, 1 Apr 2017 12:11:38 +0000 (14:11 +0200)]
install missing package files

7 years agoPMG/Postfix.pm: implement mailq (but we use postqueue directly)
Dietmar Maurer [Sat, 1 Apr 2017 11:39:51 +0000 (13:39 +0200)]
PMG/Postfix.pm: implement mailq (but we use postqueue directly)

and start postfix API

7 years agoPMG/Postfix.pm: add command to parse qshape output
Dietmar Maurer [Sat, 1 Apr 2017 11:01:55 +0000 (13:01 +0200)]
PMG/Postfix.pm: add command to parse qshape output

7 years agoPMG/Postfix.pm: add code to read postfix deferred queue
Dietmar Maurer [Sat, 1 Apr 2017 09:08:15 +0000 (11:08 +0200)]
PMG/Postfix.pm: add code to read postfix deferred queue

7 years agodefine LDAP API access permission
Dietmar Maurer [Fri, 31 Mar 2017 16:27:39 +0000 (18:27 +0200)]
define LDAP API access permission

7 years agoallow users to change their passwords
Dietmar Maurer [Fri, 31 Mar 2017 16:17:18 +0000 (18:17 +0200)]
allow users to change their passwords

7 years agoadd role based access control
Dietmar Maurer [Fri, 31 Mar 2017 16:07:22 +0000 (18:07 +0200)]
add role based access control

7 years agoPMG/HTTPServer.pm: fix typo
Dietmar Maurer [Fri, 31 Mar 2017 14:22:43 +0000 (16:22 +0200)]
PMG/HTTPServer.pm: fix typo

7 years agoPMG/API2/AccessControl.pm: create_ticket() - return role
Dietmar Maurer [Fri, 31 Mar 2017 14:20:21 +0000 (16:20 +0200)]
PMG/API2/AccessControl.pm: create_ticket() - return role

7 years agoPMG/API2/Users.pm: set protected flag to access users.conf
Dietmar Maurer [Fri, 31 Mar 2017 07:06:08 +0000 (09:06 +0200)]
PMG/API2/Users.pm: set protected flag to access users.conf

7 years agoset correct permission on /etc/pve/user.conf
Dietmar Maurer [Thu, 30 Mar 2017 16:17:27 +0000 (18:17 +0200)]
set correct permission on /etc/pve/user.conf

7 years agouse new PVE::Tools::encrypt_pw()
Dietmar Maurer [Thu, 30 Mar 2017 16:05:45 +0000 (18:05 +0200)]
use new PVE::Tools::encrypt_pw()

7 years agoPMG/Utils.pm: encrypt_pw() avoid '+' for crypt salt
Dietmar Maurer [Thu, 30 Mar 2017 06:48:46 +0000 (08:48 +0200)]
PMG/Utils.pm: encrypt_pw() avoid '+' for crypt salt

And make salt less predictable.

7 years agoPMG/UserConfig.pm: add password option
Dietmar Maurer [Thu, 30 Mar 2017 06:20:07 +0000 (08:20 +0200)]
PMG/UserConfig.pm: add password option

7 years agoPMG/UserConfig.pm: cleanup schma definitions
Dietmar Maurer [Thu, 30 Mar 2017 05:29:15 +0000 (07:29 +0200)]
PMG/UserConfig.pm: cleanup schma definitions

7 years agoPMG/UserConfig.pm: include username without realm
Dietmar Maurer [Thu, 30 Mar 2017 05:14:36 +0000 (07:14 +0200)]
PMG/UserConfig.pm: include username without realm

7 years agoPMG/API2/Users.pm: do not send crypt_pass over the network
Dietmar Maurer [Thu, 30 Mar 2017 05:03:58 +0000 (07:03 +0200)]
PMG/API2/Users.pm: do not send crypt_pass over the network

7 years agoPMG/API2/Users.pm: use correct format for userid
Dietmar Maurer [Tue, 28 Mar 2017 08:03:10 +0000 (10:03 +0200)]
PMG/API2/Users.pm: use correct format for userid

7 years agoPMG/UserConfig.pm: realm is optional (not required)
Dietmar Maurer [Tue, 28 Mar 2017 07:55:12 +0000 (09:55 +0200)]
PMG/UserConfig.pm: realm is optional (not required)

7 years agoadd realm to user properties
Dietmar Maurer [Mon, 27 Mar 2017 11:50:05 +0000 (13:50 +0200)]
add realm to user properties

7 years agoreserver role root for superuser
Dietmar Maurer [Mon, 27 Mar 2017 11:23:38 +0000 (13:23 +0200)]
reserver role root for superuser

And remove quser role for now (I guess we can detect that role automatically)

7 years agoPMG/Utils.pm: use Encode
Dietmar Maurer [Mon, 27 Mar 2017 10:23:43 +0000 (12:23 +0200)]
PMG/Utils.pm: use Encode

7 years agoPMG/AccessControl.pm: use userid including realm everywhere
Dietmar Maurer [Mon, 27 Mar 2017 10:12:45 +0000 (12:12 +0200)]
PMG/AccessControl.pm: use userid including realm everywhere

7 years agocleanup error message
Dietmar Maurer [Mon, 27 Mar 2017 09:55:52 +0000 (11:55 +0200)]
cleanup error message

7 years agoPMG/UserConfig.pm: always cleanup root@pam properties
Dietmar Maurer [Mon, 27 Mar 2017 09:47:56 +0000 (11:47 +0200)]
PMG/UserConfig.pm: always cleanup root@pam properties

7 years agoPMG/UserConfig.pm: do not allow userid 'root@pmg'
Dietmar Maurer [Mon, 27 Mar 2017 08:19:57 +0000 (10:19 +0200)]
PMG/UserConfig.pm: do not allow userid 'root@pmg'

Use 'root@pam' instead.

7 years agoPMG/UserConfig.pm: never expire root@pam
Dietmar Maurer [Mon, 27 Mar 2017 08:15:58 +0000 (10:15 +0200)]
PMG/UserConfig.pm: never expire root@pam

7 years agoPMG/UserConfig.pm: allow to maname root@pam
Dietmar Maurer [Mon, 27 Mar 2017 08:11:57 +0000 (10:11 +0200)]
PMG/UserConfig.pm: allow to maname root@pam

Simply make root@pmg and alias for root@pam.

That way we can set additional properties for the root
user (email, OTP keys, ...)

7 years agoPMG/UserConfig.pm: use better property names
Dietmar Maurer [Mon, 27 Mar 2017 07:32:04 +0000 (09:32 +0200)]
PMG/UserConfig.pm: use better property names

7 years agouse user IDs with realm (username@relam)
Dietmar Maurer [Mon, 27 Mar 2017 07:12:20 +0000 (09:12 +0200)]
use user IDs with realm (username@relam)

7 years agomove users API to /access/users
Dietmar Maurer [Mon, 27 Mar 2017 06:59:48 +0000 (08:59 +0200)]
move users API to /access/users

7 years agodepend on spf-tools-perl
Dietmar Maurer [Mon, 27 Mar 2017 04:49:14 +0000 (06:49 +0200)]
depend on spf-tools-perl

handy to debug SPF

7 years agoPMG/API2/Users.pm: implement update API
Dietmar Maurer [Sun, 26 Mar 2017 10:51:47 +0000 (12:51 +0200)]
PMG/API2/Users.pm: implement update API

7 years agoPMG/API2/Users.pm: implement create API
Dietmar Maurer [Sun, 26 Mar 2017 10:33:50 +0000 (12:33 +0200)]
PMG/API2/Users.pm: implement create API

7 years agoset minLength for username
Dietmar Maurer [Sun, 26 Mar 2017 10:33:26 +0000 (12:33 +0200)]
set minLength for username

7 years agoPMG/UserConfig.pm: improve parse, implement verification
Dietmar Maurer [Sun, 26 Mar 2017 09:20:59 +0000 (11:20 +0200)]
PMG/UserConfig.pm: improve parse, implement verification

7 years agoadd user config, rework access control
Dietmar Maurer [Sat, 25 Mar 2017 16:05:07 +0000 (17:05 +0100)]
add user config, rework access control

7 years agoPMG/API2/Services.pm: return Result for oneshot services in dead state
Dietmar Maurer [Sat, 25 Mar 2017 10:51:03 +0000 (11:51 +0100)]
PMG/API2/Services.pm: return Result for oneshot services in dead state

7 years agoPMG/API2/Services.pm: add pmg-hurly and pmg-daily
Dietmar Maurer [Sat, 25 Mar 2017 10:23:34 +0000 (11:23 +0100)]
PMG/API2/Services.pm: add pmg-hurly and pmg-daily

7 years agoadd pmg-daily timer
Dietmar Maurer [Sat, 25 Mar 2017 10:21:07 +0000 (11:21 +0100)]
add pmg-daily timer

7 years agoadd user statistic lifetime setting
Dietmar Maurer [Sat, 25 Mar 2017 09:59:54 +0000 (10:59 +0100)]
add user statistic lifetime setting

7 years agoPMG/API2/Services.pm: remove cron from default service list
Dietmar Maurer [Sat, 25 Mar 2017 09:46:51 +0000 (10:46 +0100)]
PMG/API2/Services.pm: remove cron from default service list

We try to use systemd timers instead.

7 years agorenamed: pmg-cron-hourly to pmg-hourly
Dietmar Maurer [Sat, 25 Mar 2017 09:22:53 +0000 (10:22 +0100)]
renamed: pmg-cron-hourly to pmg-hourly

7 years agouse a systemd .timer unit instead of cron
Dietmar Maurer [Sat, 25 Mar 2017 09:13:56 +0000 (10:13 +0100)]
use a systemd .timer unit instead of cron

and fix Makefile function (avoid single quotes)

7 years agoMakefile: cleanup, install pmg-cron-hourly as extra script
Dietmar Maurer [Sat, 25 Mar 2017 07:33:15 +0000 (08:33 +0100)]
Makefile: cleanup, install pmg-cron-hourly as extra script

7 years agoPMG/API2/LDAP.pm: code cleanup
Dietmar Maurer [Sat, 25 Mar 2017 06:58:09 +0000 (07:58 +0100)]
PMG/API2/LDAP.pm: code cleanup

7 years agoPMG/LDAPConfig.pm: cleanup, add new() and write() methods
Dietmar Maurer [Sat, 25 Mar 2017 06:52:13 +0000 (07:52 +0100)]
PMG/LDAPConfig.pm: cleanup, add new() and write() methods

7 years agoPMG/API2/Nodes.pm: add 'rrddata' to directory index
Dietmar Maurer [Fri, 24 Mar 2017 17:33:08 +0000 (18:33 +0100)]
PMG/API2/Nodes.pm: add 'rrddata' to directory index

7 years agoPMG/API2/Nodes.pm: add rrddata API
Dietmar Maurer [Fri, 24 Mar 2017 16:02:47 +0000 (17:02 +0100)]
PMG/API2/Nodes.pm: add rrddata API

7 years agogenerate simple node stats using RRD
Dietmar Maurer [Fri, 24 Mar 2017 15:43:07 +0000 (16:43 +0100)]
generate simple node stats using RRD