Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move cluster endpoint/jsonrpc functionality into libremote.
- Loading branch information
Michael Friedrich
committed
Mar 10, 2014
1 parent
bf2428e
commit 4c5529f
Showing
15 changed files
with
103 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Icinga 2 | ||
# Copyright (C) 2012-present Icinga Development Team (http://www.icinga.org) | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software Foundation | ||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
mkclass_target(endpoint.ti endpoint.th) | ||
|
||
mkembedconfig_target(remote-type.conf remote-type.cpp) | ||
|
||
add_library(remote SHARED | ||
endpoint.cpp endpoint.th jsonrpc.cpp remote-type.cpp | ||
) | ||
|
||
target_link_libraries(remote ${Boost_LIBRARIES} base config) | ||
|
||
set_target_properties ( | ||
icinga PROPERTIES | ||
INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/icinga2 | ||
DEFINE_SYMBOL I2_ICINGA_BUILD | ||
FOLDER Lib | ||
) | ||
|
||
install( | ||
TARGETS remote | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/icinga2 | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/****************************************************************************** | ||
* Icinga 2 * | ||
* Copyright (C) 2012-present Icinga Development Team (http://www.icinga.org) * | ||
* * | ||
* This program is free software; you can redistribute it and/or * | ||
* modify it under the terms of the GNU General Public License * | ||
* as published by the Free Software Foundation; either version 2 * | ||
* of the License, or (at your option) any later version. * | ||
* * | ||
* This program is distributed in the hope that it will be useful, * | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
* GNU General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU General Public License * | ||
* along with this program; if not, write to the Free Software Foundation * | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * | ||
******************************************************************************/ | ||
|
||
type Endpoint { | ||
%require "host", | ||
%attribute string "host", | ||
|
||
%require "port", | ||
%attribute string "port", | ||
|
||
%attribute array "config_files" { | ||
%attribute string "*" | ||
}, | ||
|
||
%attribute array "config_files_recursive" { | ||
%attribute string "*", | ||
%attribute dictionary "*" { | ||
%attribute string "path", | ||
%attribute string "pattern" | ||
} | ||
}, | ||
|
||
%attribute array "accept_config" { | ||
%attribute name(Endpoint) "*" | ||
} | ||
} |