Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #5929] Config converter / CLI module #559

Closed
icinga-migration opened this issue Apr 3, 2014 · 4 comments
Closed

[dev.icinga.com #5929] Config converter / CLI module #559

icinga-migration opened this issue Apr 3, 2014 · 4 comments
Labels
enhancement New feature or improvement

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/5929

Created by tgelf on 2014-04-03 09:57:07 +00:00

Assignee: (none)
Status: Rejected (closed on 2014-12-11 16:21:27 +00:00)
Target Version: (none)
Last Update: 2014-12-11 16:21:27 +00:00 (in Redmine)


This module should:

  • Provide libraries parsing and generating Icinga v1 Config
  • Provide libraries parsing and generating Icinga v2 Config
  • Provide CLI commands converting v1 to v2 Config

Best,
Thomas

Changesets

2014-04-03 10:35:27 +00:00 by tgelf 245fe36

Import module 'conftool' for cli.

Refs #5929

2014-04-03 15:54:15 +00:00 by (unknown) ab22508

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-04-03 15:54:54 +00:00 by (unknown) 749aae5

Dump Icinga 2 objects, part 1.

Refs #5929

2014-04-03 16:51:17 +00:00 by (unknown) 3ef6cf8

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-04-23 14:47:08 +00:00 by tgelf cc78828

Import module 'conftool' for cli.

Refs #5929

2014-04-23 14:47:08 +00:00 by (unknown) ec87e90

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-04-23 14:47:08 +00:00 by (unknown) a278020

Dump Icinga 2 objects, part 1.

Refs #5929

2014-04-23 14:47:08 +00:00 by (unknown) 17ad2a9

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-04-24 13:39:41 +00:00 by (unknown) bbe4bf8

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-04-24 13:48:09 +00:00 by (unknown) 2e270dc

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-04-24 17:11:20 +00:00 by (unknown) 86f7473

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-05-02 08:48:22 +00:00 by tgelf 85ad28a

Import module 'conftool' for cli.

Refs #5929

2014-05-02 08:48:22 +00:00 by (unknown) 10bdb12

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-05-02 08:48:22 +00:00 by (unknown) 3cb5be4

Dump Icinga 2 objects, part 1.

Refs #5929

2014-05-02 08:48:22 +00:00 by (unknown) 7519bfd

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-05-02 08:48:22 +00:00 by (unknown) d586741

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-05-02 08:48:22 +00:00 by (unknown) cf5d5c4

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-05-02 08:48:22 +00:00 by (unknown) af2c6ca

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-05-20 07:45:05 +00:00 by tgelf 59e0e4b

Import module 'conftool' for cli.

Refs #5929

2014-05-20 07:45:05 +00:00 by (unknown) 76fc44b

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-05-20 07:45:05 +00:00 by (unknown) 8c889e1

Dump Icinga 2 objects, part 1.

Refs #5929

2014-05-20 07:45:05 +00:00 by (unknown) b54ae98

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-05-20 07:45:06 +00:00 by (unknown) b99d943

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-05-20 07:45:06 +00:00 by (unknown) 0f024c4

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-05-20 07:45:06 +00:00 by (unknown) 5eab6e0

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-05-20 16:50:44 +00:00 by (unknown) 03a83bd

cli cfg: Add support for 'import' migration

refs #5929

2014-05-20 19:54:52 +00:00 by (unknown) 90d9086

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-05-20 20:02:48 +00:00 by (unknown) 355410a

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-05-20 20:10:19 +00:00 by (unknown) 2fe94f7

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-05-23 07:05:29 +00:00 by tgelf 2894e29

Import module 'conftool' for cli.

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) f6d5e50

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) 51b14ba

Dump Icinga 2 objects, part 1.

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) 0c7beee

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) 9b260ee

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) 62c46bf

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) 0555f20

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-05-23 07:05:29 +00:00 by (unknown) 6fd05be

cli cfg: Add support for 'import' migration

refs #5929

2014-05-23 07:05:30 +00:00 by (unknown) a859768

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-05-23 07:05:30 +00:00 by (unknown) 7e4ba4b

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-05-23 07:05:30 +00:00 by (unknown) 3d69248

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-05-23 13:47:39 +00:00 by tgelf 8e0d634

Import module 'conftool' for cli.

Refs #5929

2014-05-23 13:47:39 +00:00 by (unknown) ac733a6

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) f2a6582

Dump Icinga 2 objects, part 1.

Refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) 8f0c8cf

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) c1489a0

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) a6be17c

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) 95cf1c6

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) 54a4424

cli cfg: Add support for 'import' migration

refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) 94be848

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) 05e6394

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-05-23 13:47:40 +00:00 by (unknown) 97122cb

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-05-23 15:56:24 +00:00 by (unknown) afc494b

cli cfg: Make sure to pass config definitions to conversion hooks (WIP)

refs #5929

2014-06-03 10:57:24 +00:00 by tgelf 3dd46f4

Import module 'conftool' for cli.

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) c73011d

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) db601d6

Dump Icinga 2 objects, part 1.

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) 184e1bf

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) a9ca30e

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) d3d3077

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) 69638a3

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) 421335e

cli cfg: Add support for 'import' migration

refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) 40a60c4

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) b586d7c

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) 5b5798f

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-06-03 10:57:25 +00:00 by (unknown) 9169312

cli cfg: Make sure to pass config definitions to conversion hooks (WIP)

refs #5929

2014-06-03 14:15:53 +00:00 by (unknown) b5d60dd

Rename 'parse' command to 'migrate'.

Refs #5929

2014-06-03 15:54:24 +00:00 by tgelf e0f5640

Import module 'conftool' for cli.

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) a43f2d3

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) d26983a

Dump Icinga 2 objects, part 1.

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) 1f4ba73

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) b529e17

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) af5bb60

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) 5d5fd5b

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) 5ec60d9

cli cfg: Add support for 'import' migration

refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) ba6bae4

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) 6c7b13b

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) c133ad6

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-06-03 15:54:24 +00:00 by (unknown) 710c993

cli cfg: Make sure to pass config definitions to conversion hooks (WIP)

refs #5929

2014-06-03 15:54:45 +00:00 by (unknown) 3003208

cli cfg: Rename 'parse' command to 'migrate'

Refs #5929

2014-06-03 20:00:37 +00:00 by (unknown) cbe3162

cli cfg: Convert runtime macros in command line

Refs #5929

2014-06-03 20:18:27 +00:00 by (unknown) 88eb4a0

cli cfg: Extract contact{,_groups} and convert to notifications (wip)

Refs #5929

2014-06-04 09:12:42 +00:00 by (unknown) dc0852a

cli cfg: Implement support for check command args and custom vars

refs #5929

2014-06-04 14:12:20 +00:00 by tgelf e81ec4c

Import module 'conftool' for cli.

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) 65584be

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) b8a24de

Dump Icinga 2 objects, part 1.

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) 23dacff

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) efe87e3

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) 51e1218

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) aecf1d4

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) 2ceeea2

cli cfg: Add support for 'import' migration

refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) 0c97cd1

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-06-04 14:12:20 +00:00 by (unknown) 19f41e7

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-06-04 14:12:21 +00:00 by (unknown) 1d9bbad

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-06-04 14:12:21 +00:00 by (unknown) ee3d44a

cli cfg: Make sure to pass config definitions to conversion hooks (WIP)

refs #5929

2014-06-04 14:12:21 +00:00 by (unknown) 1c71777

cli cfg: Rename 'parse' command to 'migrate'

Refs #5929

2014-06-04 14:12:21 +00:00 by (unknown) 459af6c

cli cfg: Convert runtime macros in command line

Refs #5929

2014-06-04 14:12:21 +00:00 by (unknown) 0f72b39

cli cfg: Extract contact{,_groups} and convert to notifications (wip)

Refs #5929

2014-06-04 14:12:21 +00:00 by (unknown) ba16e55

cli cfg: Implement support for check command args and custom vars

refs #5929

2014-06-10 14:58:17 +00:00 by tgelf 89506c9

Import module 'conftool' for cli.

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 3ebeeb6

Refactor fetching v1 attributes from parent template tree.

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 279c9ec

Dump Icinga 2 objects, part 1.

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 54cbafc

Add global assign/ignore where (Icinga 2).

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 7c031bd

cli cfg: Add servicegroups and basic docs for Icinga 2 migration.

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 235c351

cli cfg: Add usergroups for Icinga 2 migration.

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 17b7646

cli cfg: Host, Service, User Icinga 2 objects. (WIP)

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) dceea3e

cli cfg: Add support for 'import' migration

refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 3a91f6c

cli cfg: First attempt of service->host{,group} relations

refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 24f4f95

cli cfg: Convert address* and retry|check_interval

refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) f3b91c3

cli cfg: Apply services based on hosts and hostgroups

refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) d2f7435

cli cfg: Make sure to pass config definitions to conversion hooks (WIP)

refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) e570cf0

cli cfg: Rename 'parse' command to 'migrate'

Refs #5929

2014-06-10 14:58:17 +00:00 by (unknown) 8aa72dc

cli cfg: Convert runtime macros in command line

Refs #5929

2014-06-10 14:58:18 +00:00 by (unknown) 5c541d1

cli cfg: Extract contact{,_groups} and convert to notifications (wip)

Refs #5929

2014-06-10 14:58:18 +00:00 by (unknown) 76be030

cli cfg: Implement support for check command args and custom vars

refs #5929

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-05-26 11:08:33 +00:00

Current status quo:

  • parsing of v1 configuration objects
  • dump all converted objects on stdout
  • Objects in progress:
    • Commands (split into 3 types to-do)
    • Groups with assign membership (done)
    • Hosts (attribute migration)
    • Services on Hosts and Hostgroups (assign where)
      • if the host_name or hostgroup_name attribute is hidden in the template tree, get it from there (to-do)
      • additional attribute migration (to-do)
  • Notifications to-do: get contact objects from configuration, and generate notifications per host/service
  • Contact -> User migration
  • deal with dependencies/escalations
  • rewrite all runtime macros in command line (open for LConf as well)
  • specialities on wrong configuration (templates without name, objects with name instead of host_name or service_description)

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-05-30 12:34:36 +00:00

macro conversion: http://git.netways.org/lconf/lconf/commit/a9654e8067c5dbb855b0d5de5caebff0e2338016

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-06-02 11:53:14 +00:00

We'll split this into a separate project, bootstrap the cli call, and release that with icinga 2.0. Will be merged back once done, and serve as configuration migration chain in the future when Icinga Web 2 will be ready.

@icinga-migration
Copy link
Author

Updated by elippmann on 2014-12-11 16:21:27 +00:00

  • Status changed from Assigned to Rejected
  • Assigned to deleted mfriedrich

We will put no more effort in a config converter for the CLI at the moment.

@icinga-migration icinga-migration added the enhancement New feature or improvement label Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement
Projects
None yet
Development

No branches or pull requests

1 participant