Skip to content

Commit

Permalink
Merge pull request #166 from jouvin/machine-types-core-refactoring
Browse files Browse the repository at this point in the history
machine-types/core: refactoring to avoid loading Quattor schema too early
  • Loading branch information
jrha authored Nov 13, 2024
2 parents c87889f + 4931c82 commit da57e54
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
8 changes: 6 additions & 2 deletions machine-types/core-init.pan
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ include SITE_GLOBAL_VARS_TEMPLATE;
variable SITE_FUNCTIONS_TEMPLATE ?= if_exists('site/functions');
include SITE_FUNCTIONS_TEMPLATE;

# Load Quattor version
include 'quattor/client/version';
variable DEBUG = debug('QUATTOR_RELEASE = %s', to_string(QUATTOR_RELEASE));

# Package management core functions
include 'components/spma/functions';

# profile_base for profile structure
include 'quattor/profile_base';
# Load Pan units
include 'pan/units';

# hardware
include 'hardware/functions';
Expand Down
21 changes: 14 additions & 7 deletions machine-types/core.pan
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ variable OS_POSTPONE_AII_CONFIG ?= OS_POSTPONE_FILESYSTEM_CONFIG;
variable DEBUG = debug('%s: OS_POSTPONE_AII_CONFIG=%s', OS_POSTPONE_AII_CONFIG);


# Grub configuration module initialisation
include 'components/grub/config';

# common site machine configuration
# common site machine early configuration
variable SITE_CONFIG_TEMPLATE ?= 'site/config';
include SITE_CONFIG_TEMPLATE;

Expand All @@ -54,9 +51,6 @@ variable OS_NS_REPOSITORY ?= 'repository/';
# software packages
include 'pan/functions';

# Configure Bind resolver
include 'site/named';


# Include OS version dependent RPMs
variable SERVICE_OS_BASE_TEMPLATE = {
Expand All @@ -68,6 +62,19 @@ variable SERVICE_OS_BASE_TEMPLATE = {
};
include SERVICE_OS_BASE_TEMPLATE;

# common site machine configuration to be done after the OS
variable SITE_CONFIG_POSTOS_TEMPLATE ?= 'site/config-postos';
include if_exists(SITE_CONFIG_POSTOS_TEMPLATE);

# profile_base for profile structure
include 'quattor/profile_base';

# Configure Bind resolver
include 'site/named';

# Grub configuration module initialisation
include 'components/grub/config';

# Configure time synchonisation
include if_exists('site/time_synchronisation');

Expand Down

0 comments on commit da57e54

Please sign in to comment.