Skip to content

Commit

Permalink
Update grid-related examples
Browse files Browse the repository at this point in the history
- Use umd-4 rather than umd-3
- Use EL7 as the OS
- Remove obsolete machine type (LFC, WMS)
- Remove obsolete features
  • Loading branch information
jouvin committed Nov 7, 2024
1 parent 6998c80 commit ab95dbb
Show file tree
Hide file tree
Showing 31 changed files with 118 additions and 237 deletions.
2 changes: 0 additions & 2 deletions clusters/grid/umd3/cluster.build.properties

This file was deleted.

18 changes: 0 additions & 18 deletions clusters/grid/umd3/profiles/cream.example.org.pan

This file was deleted.

16 changes: 0 additions & 16 deletions clusters/grid/umd3/profiles/lfc.example.org.pan

This file was deleted.

19 changes: 0 additions & 19 deletions clusters/grid/umd3/profiles/wmslb.example.org.pan

This file was deleted.

2 changes: 2 additions & 0 deletions clusters/grid/umd4/cluster.build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cluster.pan.includes=sites/example grid/umd-4 os quattor/23.9.0-rc1 standard
cluster.pan.dep.ignore=""
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ include 'machine-types/example/se_dpm';
# software repositories
#
include PKG_REPOSITORY_CONFIG;


Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ include 'machine-types/example/se_dpm';
# software repositories
#
include PKG_REPOSITORY_CONFIG;


Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ include 'machine-types/example/se_dpm';
#"/software/components/accounts/rootpwd" = "$1$gMlULQt/$SEHi2bFOtlEwv/qMj4ZBP0";

# Tune MySQL parameters (recommended)
'/software/components/mysql/servers/' = {
SELF[FULL_HOSTNAME]['options'] = nlist(
'innodb_buffer_pool_size','2048M',
'innodb_additional_mem_pool_size','256M',
);
SELF;
include 'components/mysql/config';
'/software/components/mysql/servers' = {
SELF[FULL_HOSTNAME]['options'] = dict(
'innodb_buffer_pool_size', '2048M',
'innodb_additional_mem_pool_size', '256M',
);
SELF;
};

#
# software repositories
#
include PKG_REPOSITORY_CONFIG;


Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,47 @@

unique template repository/config;

include {'pan/functions'};
include'pan/functions';

include { 'repository/snapshot/snapshot_variables' };
include 'repository/snapshot/snapshot_variables';

# Repositories related to base OS and quattor client (should be first)
include {'repository/config/os'};
include'repository/config/os';

# Quattor repositories
include { 'repository/config/quattor' };
include 'repository/config/quattor';

# Local Repositories
variable YUM_SITE_SNAPSHOT_NS ?= YUM_SNAPSHOT_NS;
variable SITE_REPOSITORY_LIST ?= list();
variable SITE_REPOSITORY_CONFIG ?= nlist();
variable DEBUG = debug('OS_REPOSITORY_LIST = ' + to_string(OS_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_LIST = ' + to_string(SITE_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_CONFIG = ' + to_string(SITE_REPOSITORY_CONFIG) + "\n");
include {'quattor/functions/repository'};
variable SITE_REPOSITORY_CONFIG ?= dict();
variable DEBUG = debug(
'OS_REPOSITORY_LIST = ' + to_string(OS_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_LIST = ' + to_string(SITE_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_CONFIG = ' + to_string(SITE_REPOSITORY_CONFIG) + "\n"
);
include'quattor/functions/repository';
#'/software/repositories' = add_repositories(SITE_REPOSITORY_LIST,YUM_SITE_SNAPSHOT_NS);
'/software/repositories' = add_repositories(SITE_REPOSITORY_LIST);
'/software/repositories' = repository_config(SITE_REPOSITORY_CONFIG);

# Repositories related to grid middleware
# Only if it can be found in the loadpath (else this is a machine not running gLite
include { if_exists('repository/config/grid') };
include if_exists('repository/config/grid');

# Repositories related to Nagios
variable REPOSITORY_CONFIG_NAGIOS ?= null;
variable REPOSITORY_CONFIG_NAGIOS_INCLUDE = {
if (exists(REPOSITORY_CONFIG_NAGIOS) && is_defined(REPOSITORY_CONFIG_NAGIOS)) {
return(REPOSITORY_CONFIG_NAGIOS);
} else {
return(null);
};
if (exists(REPOSITORY_CONFIG_NAGIOS) && is_defined(REPOSITORY_CONFIG_NAGIOS)) {
REPOSITORY_CONFIG_NAGIOS;
} else {
null;
};
};
include { REPOSITORY_CONFIG_NAGIOS_INCLUDE };
include REPOSITORY_CONFIG_NAGIOS_INCLUDE;

# Register repository changes with yum based spma
include 'components/spma/config';
'/software/components/spma/register_change' = {
if (is_defined(QUATTOR_RELEASE) && (QUATTOR_RELEASE >= '13.2')) {
append('/software/repositories');
Expand All @@ -52,4 +55,4 @@ include { REPOSITORY_CONFIG_NAGIOS_INCLUDE };
};

# Cleanup repository information
include { 'components/spma/repository_cleanup' };
include 'components/spma/repository_cleanup';
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable OS_FLAVOUR_ENABLED ?= true;

# YUM Repository snapshots
variable YUM_SNAPSHOT_DATE ?= '20140304';
variable AII_OSINSTALL_ROOT = '/yum/snapshots/'+YUM_SNAPSHOT_DATE;
variable AII_OSINSTALL_ROOT = '/yum/snapshots/' + YUM_SNAPSHOT_DATE;

# Set to true to enable MPI support
variable ENABLE_MPI ?= false;
Expand All @@ -41,6 +41,6 @@ variable PKG_REPOSITORY_CONFIG ?= 'repository/config';
#
# set root password on machines
#
include { 'components/accounts/config' };
include 'components/accounts/config';
"/software/components/accounts/rootpwd" ?= "$1$57qRuCXe$NPngMkg4BrLBf5hfJzJh21";
"/software/components/accounts/shadowpwd" = true;
32 changes: 17 additions & 15 deletions clusters/misc/nagios/repository/config.pan
Original file line number Diff line number Diff line change
@@ -1,45 +1,47 @@
unique template repository/config;

include {'pan/functions'};
include 'pan/functions';

# NOTE: This template should be the LAST thing included in a
# machine profile. If you include packages after this template
# then they will not be "resolved" and SPMA will not function
# correctly.

# Repositories related to base OS and quattor client (should be first)
include {'repository/config/os'};
include 'repository/config/os';

# Quattor repository
include { 'repository/config/quattor' };
include 'repository/config/quattor';

# Local Repositories
variable YUM_SITE_SNAPSHOT_NS ?= YUM_SNAPSHOT_NS;
variable SITE_REPOSITORY_LIST ?= list();
variable SITE_REPOSITORY_CONFIG ?= nlist();
variable DEBUG = debug('OS_REPOSITORY_LIST = ' + to_string(OS_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_LIST = ' + to_string(SITE_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_CONFIG = ' + to_string(SITE_REPOSITORY_CONFIG) + "\n");
include {'quattor/functions/repository'};
variable DEBUG = debug(
'OS_REPOSITORY_LIST = ' + to_string(OS_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_LIST = ' + to_string(SITE_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_CONFIG = ' + to_string(SITE_REPOSITORY_CONFIG) + "\n"
);
include'quattor/functions/repository'};
#'/software/repositories' = add_repositories(SITE_REPOSITORY_LIST,YUM_SITE_SNAPSHOT_NS);
'/software/repositories' = add_repositories(SITE_REPOSITORY_LIST);
'/software/repositories' = repository_config(SITE_REPOSITORY_CONFIG);

# Repositories related to grid middleware
# Only if it can be found in the loadpath (else this is a machine not
# running gLite like a non UI LAL server)
include { if_exists('repository/config/grid') };
include if_exists('repository/config/grid');

# Repositories related to Nagios
variable REPOSITORY_CONFIG_NAGIOS ?= null;
variable REPOSITORY_CONFIG_NAGIOS_INCLUDE = {
if (exists(REPOSITORY_CONFIG_NAGIOS) && is_defined(REPOSITORY_CONFIG_NAGIOS)) {
return(REPOSITORY_CONFIG_NAGIOS);
} else {
return(null);
};
if (exists(REPOSITORY_CONFIG_NAGIOS) && is_defined(REPOSITORY_CONFIG_NAGIOS)) {
REPOSITORY_CONFIG_NAGIOS;
} else {
null;
};
};
include { REPOSITORY_CONFIG_NAGIOS_INCLUDE };
include REPOSITORY_CONFIG_NAGIOS_INCLUDE;

# Register repository changes with yum based spma
'/software/components/spma/register_change' = {
Expand All @@ -51,4 +53,4 @@ include { REPOSITORY_CONFIG_NAGIOS_INCLUDE };
};

# Cleanup repository information
include { 'components/spma/repository_cleanup' };
include 'components/spma/repository_cleanup';
20 changes: 11 additions & 9 deletions clusters/openstack/icehouse/repository/config.pan
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ variable YUM_SITE_SNAPSHOT_NS ?= YUM_SNAPSHOT_NS;
variable SITE_REPOSITORY_LIST ?= list();
variable SITE_REPOSITORY_CONFIG ?= dict();
variable QUATTOR_REPOSITORY_LIST ?= list('snapshot/' + REPOSITORY_SNAPSHOT + '/Quattor-' + QUATTOR_RELEASE);
variable DEBUG = debug('OS_REPOSITORY_LIST = ' + to_string(OS_REPOSITORY_LIST) + "\n" +
'QUATTOR_REPOSITORY_LIST = ' + to_string(QUATTOR_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_LIST = ' + to_string(SITE_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_CONFIG = ' + to_string(SITE_REPOSITORY_CONFIG) + "\n");
variable DEBUG = debug(
'OS_REPOSITORY_LIST = ' + to_string(OS_REPOSITORY_LIST) + "\n" +
'QUATTOR_REPOSITORY_LIST = ' + to_string(QUATTOR_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_LIST = ' + to_string(SITE_REPOSITORY_LIST) + "\n" +
'SITE_REPOSITORY_CONFIG = ' + to_string(SITE_REPOSITORY_CONFIG) + "\n"
);
include 'quattor/functions/repository';
'/software/repositories' = add_repositories(QUATTOR_REPOSITORY_LIST);
'/software/repositories' = add_repositories(SITE_REPOSITORY_LIST);
Expand All @@ -29,11 +31,11 @@ include 'quattor/functions/repository';
# Repositories related to Nagios
variable REPOSITORY_CONFIG_NAGIOS ?= null;
variable REPOSITORY_CONFIG_NAGIOS_INCLUDE = {
if (exists(REPOSITORY_CONFIG_NAGIOS) && is_defined(REPOSITORY_CONFIG_NAGIOS)) {
REPOSITORY_CONFIG_NAGIOS;
} else {
null;
};
if (exists(REPOSITORY_CONFIG_NAGIOS) && is_defined(REPOSITORY_CONFIG_NAGIOS)) {
REPOSITORY_CONFIG_NAGIOS;
} else {
null;
};
};
include REPOSITORY_CONFIG_NAGIOS_INCLUDE;

Expand Down
21 changes: 0 additions & 21 deletions sites/example/site/config/example_nodes_properties.pan

This file was deleted.

18 changes: 0 additions & 18 deletions sites/example/site/config/nodes_properties.pan

This file was deleted.

Loading

0 comments on commit ab95dbb

Please sign in to comment.