<commit_before># puppet-lizardfs

- Author: Asher256
- Github repository: https://github.com/Asher256/puppet-lizardfs
- Puppet Forge page: https://forge.puppet.com/Asher256/lizardfs/readme

#### Table of Contents

1. [Overview](#overview)
2. [Example](#example)
3. [High-Availability](#high-availability)
4. [Requirements](#requirements)
5. [Contribute](#contribute)

## Overview

The puppet-lizardfs module lets you use Puppet to install and configure
LizardFS automatically.

LizardFS is an open source distributed file system, highly available, scalable
and ready to use.

You can configure with puppet-lizardfs:
- The LizardFS master (ready for High-availability with tools like keepalived or Pacemaker. Check out the explanation below)
- The LizardFS chunkserver
- The LizardFS metalogger
- The LizardFS client and mount points

Puppet dependencies (Puppet modules):
- stdlib

## Example

To configure the LizardFS master:
```
class {'lizardfs::master':
  ensure              => 'present',
  first_personality   => 'MASTER',
  exports             => ['*    /    ro'],
}
```

To configure the chunkserver:
```
host { 'mfsmaster':
  ip => 'x.x.x.x',
}

->
class {'lizardfs::chunkserver':
  ensure => present,
}
```

To mount a LizardFS mount point:
```
lizardfs::mount {'/mnt/':
  lizardfs_subfolder => '/',
  lizardfs_master    => 'x.x.x.x',   # the IP / host of the LizardFS Master
}
```

To configure the metalogger:
```
# FYI: the host "mfsmaster" need to be set, like the chunkserver example below
class {'lizardfs::metalogger':
  ensure => present,
}
```

## High-Availability

The Puppet module "puppet-lizardfs" is ready for HA (High-Availability), but you still need to configure the High-Availability yourself with a tool like Keepalived or Pacemaker.

Puppet-lizardfs is "Ready for high-availability" means:
- Once the 'PERSONALITY' is set in 'mfsmaster.cfg' (with the variable lizardfs::master::first_personality), the variable 'PERSONALITY' is not overwritten by Puppet anymore.
- The fact that "PERSONALITY" is not overwritten by Puppet gives you the possibility to modify the personality with a tool like keepalived, generate mfsmaster.cfg with the new personality and restart the LizardFS master. Your high-availability scripts can change the personality with this script created by puppet-lizardfs /etc/lizardfs/generate-mfsmaster-cfg.sh

If you want to switch the personality from SHADOW to MASTER with your failover script:
```
/etc/lizardfs/generate-mfsmaster-cfg.sh MASTER
mfsmaster reload         # reload is enough
```

To switch the personality from MASTER to SHADOW:
```
/etc/lizardfs/generate-mfsmaster-cfg.sh SHADOW
mfsmaster restart        # RESTART is needed to switch from MASTER to SHADOW
```

(for those who want to use keepalived to configure the high-availability, I recommend you to use the module https://forge.puppet.com/arioch/keepalived with puppet-lizardfs)

## Requirements

- Operating system: Debian, Ubuntu, CentOS, RedHat

On Ubuntu and Debian, puppet-lizardfs works out of the box. On CentOS you will need to
add the LizardFS repository manually:
```
curl http://packages.lizardfs.com/lizardfs.key > /etc/pki/rpm-gpg/RPM-GPG-KEY-LizardFS
curl http://packages.lizardfs.com/yum/el7/lizardfs.repo > /etc/yum.repos.d/lizardfs.repo
yum update
```

## Contribute

This Puppet module is an open project, and community contributions are
essential for keeping it great. I can't access the huge number of platforms and
myriad hardware, software, and deployment configurations that Puppet is
intended to serve. I encourage you to contribute. Send me your pull requests on
Github!
<commit_msg>README: CentOS works out of the box thanks to the yum repo<commit_after># puppet-lizardfs

- Author: Asher256
- Github repository: https://github.com/Asher256/puppet-lizardfs
- Puppet Forge page: https://forge.puppet.com/Asher256/lizardfs/readme

#### Table of Contents

1. [Overview](#overview)
2. [Example](#example)
3. [High-Availability](#high-availability)
4. [Requirements](#requirements)
5. [Contribute](#contribute)

## Overview

The puppet-lizardfs module lets you use Puppet to install and configure
LizardFS automatically.

LizardFS is an open source distributed file system, highly available, scalable
and ready to use.

You can configure with puppet-lizardfs:
- The LizardFS master (ready for High-availability with tools like keepalived or Pacemaker. Check out the explanation below)
- The LizardFS chunkserver
- The LizardFS metalogger
- The LizardFS client and mount points

Puppet dependencies (Puppet modules):
- stdlib

## Example

To configure the LizardFS master:
```
class {'lizardfs::master':
  ensure              => 'present',
  first_personality   => 'MASTER',
  exports             => ['*    /    ro'],
}
```

To configure the chunkserver:
```
host { 'mfsmaster':
  ip => 'x.x.x.x',
}

->
class {'lizardfs::chunkserver':
  ensure => present,
}
```

To mount a LizardFS mount point:
```
lizardfs::mount {'/mnt/':
  lizardfs_subfolder => '/',
  lizardfs_master    => 'x.x.x.x',   # the IP / host of the LizardFS Master
}
```

To configure the metalogger:
```
# FYI: the host "mfsmaster" need to be set, like the chunkserver example below
class {'lizardfs::metalogger':
  ensure => present,
}
```

## High-Availability

The Puppet module "puppet-lizardfs" is ready for HA (High-Availability), but you still need to configure the High-Availability yourself with a tool like Keepalived or Pacemaker.

Puppet-lizardfs is "Ready for high-availability" means:
- Once the 'PERSONALITY' is set in 'mfsmaster.cfg' (with the variable lizardfs::master::first_personality), the variable 'PERSONALITY' is not overwritten by Puppet anymore.
- The fact that "PERSONALITY" is not overwritten by Puppet gives you the possibility to modify the personality with a tool like keepalived, generate mfsmaster.cfg with the new personality and restart the LizardFS master. Your high-availability scripts can change the personality with this script created by puppet-lizardfs /etc/lizardfs/generate-mfsmaster-cfg.sh

If you want to switch the personality from SHADOW to MASTER with your failover script:
```
/etc/lizardfs/generate-mfsmaster-cfg.sh MASTER
mfsmaster reload         # reload is enough
```

To switch the personality from MASTER to SHADOW:
```
/etc/lizardfs/generate-mfsmaster-cfg.sh SHADOW
mfsmaster restart        # RESTART is needed to switch from MASTER to SHADOW
```

(for those who want to use keepalived to configure the high-availability, I recommend you to use the module https://forge.puppet.com/arioch/keepalived with puppet-lizardfs)

## Requirements

- Operating system: Debian, Ubuntu, CentOS, RedHat

On CentOS, Ubuntu and Debian, puppet-lizardfs works out of the box.

## Contribute

This Puppet module is an open project, and community contributions are
essential for keeping it great. I can't access the huge number of platforms and
myriad hardware, software, and deployment configurations that Puppet is
intended to serve. I encourage you to contribute. Send me your pull requests on
Github!

{'fraction_non_alphanumeric': 0.09400255210548703, 'fraction_numerical': 0.004111725506876506, 'mean_word_length': 4.352048558421851, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4950311', 'n_tokens_mistral': 2258, 'n_tokens_neox': 2119, 'n_words': 805}