{"id":24890413,"url":"https://github.com/ericsson/puppet-module-cgroups","last_synced_at":"2026-03-10T17:40:18.510Z","repository":{"id":12097560,"uuid":"14686135","full_name":"Ericsson/puppet-module-cgroups","owner":"Ericsson","description":"Puppet module to manage cgroups","archived":false,"fork":false,"pushed_at":"2019-03-22T19:46:13.000Z","size":52,"stargazers_count":0,"open_issues_count":8,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-22T00:51:55.195Z","etag":null,"topics":["puppet"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ericsson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-25T13:24:46.000Z","updated_at":"2019-03-05T11:12:50.000Z","dependencies_parsed_at":"2022-09-03T14:31:28.506Z","dependency_job_id":null,"html_url":"https://github.com/Ericsson/puppet-module-cgroups","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/Ericsson/puppet-module-cgroups","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-cgroups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-cgroups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-cgroups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-cgroups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ericsson","download_url":"https://codeload.github.com/Ericsson/puppet-module-cgroups/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2Fpuppet-module-cgroups/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279165669,"owners_count":26117912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["puppet"],"created_at":"2025-02-01T17:15:26.207Z","updated_at":"2025-10-16T07:30:54.099Z","avatar_url":"https://github.com/Ericsson.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# puppet-module-cgroups\n\nManage cgroups configuration service and files.\n\n- /etc/cgconfig.conf\n- /etc/cgconfig.d/*.conf\n\n# Compatibility\n\nThis module has been tested to work on the following systems with Puppet v3\n(with and without the future parser) and Puppet v4 (with strict variables)\nusing Ruby versions 1.8.7 (Puppet v3 only), 1.9.3, 2.0.0, 2.1.0 and 2.3.1.\n\n  * EL 6\n  * EL 7\n  * SLED 11 SP2\n  * SLES 11 SP2\n\n[![Build Status](https://travis-ci.org/Ericsson/puppet-module-cgroups.png?branch=master)](https://travis-ci.org/Ericsson/puppet-module-cgroups)\n\n## Class `cgroups`\n\n### Description\n\nThe `cgroups` class is used to configure the cgroup service and its main configuration details.\n\n### Parameters\n\n---\n#### cgconfig_content (string)\nOptional, specify arbitary content for the cgconfig.conf file that will be included at the bottom.\n\n- *Default*: undef\n\n---\n#### config_file_path (string)\nAbsolute path to cgroups config file.\n\n- *Default*: '/etc/cgconfig.conf'\n\n---\n#### groups (hash)\nA hash containing group resources to be configured (see below for cgroups::group resources)\n\n- *Default*: undef\n\n##### Example:\n```yaml\ncgroups::groups:\n  \"user/mgw-all\":\n    permissions:\n      task:\n        uid: root\n        gid: mgw-all\n      admin:\n        uid: root\n        gid: mgw-all\n    controllers:\n      cpuset:\n        \"cpuset.mems\": \"0\"\n        \"cpuset.cpus\": \"0,1\"\n```\n\n##### Hiera example with Suse 11.2 bugfix:\n```yaml\ncgroups::user_path_fix: '/sys/fs/cgroup/user/mgw-all'\ncgroups::groups:\n  \"user/mgw-all\":\n    permissions:\n      task:\n        uid: root\n        gid: mgw-all\n      admin:\n        uid: root\n        gid: mgw-all\n    controllers:\n      cpuset:\n        \"cpuset.mems\": \"0\"\n        \"cpuset.cpus\": \"0,1\"\n```\n---\n#### mounts (hash)\nA hash containing mounts to be configured in /etc/cgconfig.conf.\nNOTE: On systemd managed systems, the default resource controllers are the domain of systemd, therefore this setting should probably not be used unless you are managing a controller not yet supported by systemd such as net_prio.\n\n- *Default*: undef\n\n##### Example:\n```yaml\ncgroups::mounts:\n  cpu: '/cgroup'\n```\n---\n#### package_name (string or array)\nName of package(s) that enables cgroups. Only set it to overwrite the modules defaults: RedHat 'libcgroup', Suse 'libcgroup1'.\n\n- *Default*: undef\n\n---\n#### service_name (string)\nName of service to manage.\n\n- *Default*: 'cgconfig'\n\n---\n#### user_path_fix (string)\nAbsolute path to set 0775 permissions on when defined. This is a fix for Suse that have a bug in setting this though the config file. Only available on Suse.\n\n- *Default*: undef\n\n---\n\n## Defined type `cgroups::group`\n\n### Description\n\nThe `cgroups::group` definition is used to configure cgroup entries in /etc/cgconfig.d.\n\nYou can also specify `cgroups::groups` from hiera as a hash of group resources and they will be created by the base class using create_resources.\n\n### Parameters\n\n---\n#### controllers (hash)\nAn optional hash containing the controllers for the group.\n\n- *Default*: undef\n\n##### Example:\n```yaml\n  controllers =\u003e {\n    'cpuset' =\u003e { \n      'cpuset.mems' =\u003e '0',\n      'cpuset.cpus' =\u003e '0,1'\n    }\n  }\n```\n---\n\n#### permissions (hash)\nAn optional hash containing permissions for the group.\n\n- *Default*: undef\n\n##### Example:\n```yaml\n  permissions =\u003e {\n    'task' =\u003e {\n      'uid' =\u003e 'root',\n      'gid' =\u003e 'mgw-all',\n    },\n    'admin' =\u003e {\n      'uid' =\u003e 'root',\n      'gid' =\u003e 'mgw-all',\n    },\n  }\n```\n---\n\n#### target_path (string)\nOptional parameter to define in which path the configuration file should be put. By default the module will use the /etc/cgconfig.d directory.\n\n- *Default*: '/etc/cgconfig.d'\n\n---\n### Full example\n```yaml\ncggroups::group { 'mgw/user':\n  permissions =\u003e {\n    'task' =\u003e {\n      'uid' =\u003e 'root',\n      'gid' =\u003e 'mgw-all',\n    },\n    'admin' =\u003e {\n      'uid' =\u003e 'root',\n      'gid' =\u003e 'mgw-all',\n    },\n  },\n  controllers =\u003e {\n    'cpuset' =\u003e { \n      'cpuset.mems' =\u003e '0',\n      'cpuset.cpus' =\u003e '0,1'\n    }\n  }\n}\n```\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Fpuppet-module-cgroups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericsson%2Fpuppet-module-cgroups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Fpuppet-module-cgroups/lists"}