Jean Flach
2636e6a77a
Whitespace fix
...
What does this change?
* Remove use of spaces for formatting
These could be found by using `grep -r -l -P '^\t+ +[^*]'
* Removal of training whitespaces
* A few lines longer than 120 chars
2017-12-20 14:53:52 +01:00
Michael Friedrich
5b44bfb125
Merge pull request #5868 from Icinga/feature/expression-ptr
...
Use std::unique_ptr for Expression objects
2017-12-18 09:54:30 +01:00
Gunnar Beutner
5d96196f08
Replace incorrect fclose() call with pclose()
2017-12-15 22:25:08 +01:00
Gunnar Beutner
ab8386cf5c
Use std::unique_ptr for Expression objects
2017-12-15 10:44:54 +01:00
Gunnar Beutner
1ad83886ac
Replace a few more NULLs with nullptr
2017-12-14 15:37:20 +01:00
Gunnar Beutner
96e214221d
Remove unused variables
2017-12-14 08:50:09 +01:00
Gunnar Beutner
3ce68b49c7
Fix compiler warning introduced by #5811
2017-12-12 11:54:47 +01:00
Michael Friedrich
aec231b119
Merge pull request #5811 from Icinga/feature/update-constants-conf-api-setup
...
Update NodeName/ZoneName constants with 'api setup'
2017-12-07 17:35:46 +01:00
Gunnar Beutner
325e4a2fb9
Use nullptr instead of <Type>::Ptr()
2017-11-30 17:47:09 +01:00
Gunnar Beutner
3c60fbf75d
Use std::vector::emplace_back instead of std::vector::push_back
2017-11-30 17:47:09 +01:00
Gunnar Beutner
2e87c280ed
Use initializer lists instead of std::vector::push_back
2017-11-30 17:47:09 +01:00
Gunnar Beutner
9ce950b0f1
Replace boost::ref/boost::cref with std::ref/std::cref
2017-11-30 17:47:09 +01:00
Gunnar Beutner
6d09efc907
Use std::shared_ptr instead of boost::shared_ptr
2017-11-30 17:41:00 +01:00
Michael Friedrich
f267135711
Update NodeName/ZoneName constants with 'api setup'
...
This commit also moves the constants.conf backup logic
into NodeUtility::UpdateConstant() where it belongs.
Logging has been slightly adopted too.
fixes #5763
2017-11-28 13:38:53 +01:00
Gunnar Beutner
858873b940
Replace boost::bind/boost::function with std::bind/std::function
2017-11-27 15:15:11 +01:00
Gunnar Beutner
81ae14cd17
Merge pull request #5729 from Icinga/fix/correct-node-wizard-output-formatting
...
Correct node wizard output formatting
2017-11-27 10:19:12 +01:00
Gunnar Beutner
65bc62266d
Fix error reporting for 'icinga2 console -r'
2017-11-24 12:56:42 +01:00
Noah Hilverling
e6f94ff203
Correct node wizard output formatting
2017-11-08 09:04:25 +01:00
Michael Friedrich
260c6d7438
Node setup: ticket parameter is now optional
...
refs #5681
2017-11-03 14:10:45 +01:00
Michael
86cdc5bc53
Include default global zones during node wizard/setup
...
This changes the GenerateNodeMasterIcingaConfig and GenerateNodeIcingaConfig
functions inside the nodeutillity class to the effect, that the default global
zones global-templates and director-global will be written to the generated
zones.conf that is created during the node wizard/setup.
refs #5707
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-10-31 12:07:12 +01:00
Gunnar Beutner
f2d437e96c
Implement support for migrating certificates to /var/lib/icinga2/certs
...
This commit includes documentation too.
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-10-20 14:06:02 +02:00
Michael Friedrich
9d68ae9f1f
Merge pull request #5602 from Icinga/fix/config-validation-fails-on-windows-with-unprivileged-account-5515
...
Add windows process elevation and log message if user does not have privileges to read/write files
2017-10-13 16:31:12 +02:00
Michael Friedrich
a521f49803
Fix debug builds on Apple Clang 9.0.0 (macOS High Sierra)
2017-10-02 13:49:42 +02:00
Michael Friedrich
11c41cd747
Drop unused code from NodeUtility class
...
refs #4799
2017-09-22 14:05:08 +02:00
Michael Friedrich
601c10b997
Remove bottom-up CLI commands
...
refs #4799
2017-09-22 14:04:43 +02:00
Noah Hilverling
aab50f669c
Add process elevation & log message if user does not have enough privileges
...
refs #5515
2017-09-22 10:25:17 +02:00
Gunnar Beutner
80421e4619
Build fix for OpenSSL < 1.0.2
...
refs #5450
2017-09-12 13:09:16 +02:00
Michael Friedrich
0a85977831
Node Wizard: Tell the user to put ca.crt if no connection to parent is selected
...
This also fixes the choice tree for connection-less questions
and prevents empty tickets being stored on disk.
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
f43516a097
Implement the --verbose option for "node wizard"
...
refs #5450
2017-09-12 12:52:49 +02:00
Michael Friedrich
e424017c15
Refactor the node wizard/setup CLI commands
...
refs #5450
2017-09-12 12:52:49 +02:00
Michael Friedrich
ce88e89cc0
Fix wrong cert path for CLI commands
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
a7fe6467ba
Improve log messages for the 'pki save-cert' command
...
refs #5450
2017-09-12 12:52:49 +02:00
Michael Friedrich
8040bda2e1
Change directory layout to /var/lib/icinga2/{ca,certs,certificate_requests}
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
c02742925e
Refactor PkiUtility class
...
refs #5450
2017-09-12 12:52:49 +02:00
Michael Friedrich
1e7860f2b1
Implement ApiListener::Get*Dir() functions
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
6a533796e5
Update output format for the new CLI commands
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
774936bfe8
Implement support for pki::UpdateCertificate messages
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
439251532e
Implement support for saving client tickets
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
cdff792c11
Make the ticket optional in 'icinga2 node wizard'
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
8d05fc99c9
Improve message formatting for the 'icinga2 node wizard' command
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
a4684d1bfd
Implement support for sending pki::RequestCertificate messages in the cluster
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
b08f5477dc
Change PKI path from /etc/icinga2/pki to /var/lib/icinga2/pki
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
abdd4b307b
Implement the 'ca list' and 'ca sign' CLI commands
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
510e2d622a
Implement support for ticket-less certificate requests
...
refs #5450
2017-09-12 12:52:49 +02:00
Gunnar Beutner
4d943c7f5c
Implement additional functions for printing values with LLDB/GDB
2017-08-10 08:26:22 +02:00
Michael I
3e54e34147
Update featurelistcommand.cpp
...
refs #5431
2017-07-25 13:35:20 +02:00
mcktr
53908b7080
Fixed missing closing bracket in CLI command pki new-cert.
2017-06-18 15:13:16 +02:00
Gunnar Beutner
d05b7c4178
Allow expressions for the type in object/template declarations
2017-05-11 14:21:30 +02:00
Gunnar Beutner
4134f7fe42
Make sure modified attributes are applied before calling the objects' Start method
...
refs #4696
2017-05-03 12:02:19 +02:00
Benedikt Heine
9337135249
Give only CLI warnings if feature is already disabled
...
refs #121
refs #4909
Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-02-02 14:17:47 +01:00