<commit_before># Install Puppet

VERSION=$(awk '{print $3}' /etc/centos-release)
VERSION=${VERSION:0:1}

if [ "$VERSION" -eq "6"]
then
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    rpm -Uvh remi-release-6*.rpm 

    # Ajout du repository personnel contenant le package ruby
    echo "[personal-repo-www]" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "gpgcheck=0" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "name=Red Hat Linux $releasever - $basearch" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "baseurl=http://ec2-54-77-188-112.eu-west-1.compute.amazonaws.com/repo/el6/" >> /etc/yum.repos.d/personal-repos-www.repo
elif [ "$VERSION" -eq "7"]
then
    wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
    rpm -ivh remi-release-7*.rpm 

    # Ajout du repository personnel contenant le package ruby
    echo "[personal-repo-www]" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "gpgcheck=0" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "name=Red Hat Linux $releasever - $basearch" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "baseurl=http://ec2-54-77-188-112.eu-west-1.compute.amazonaws.com/repo/el7/" >> /etc/yum.repos.d/personal-repos-www.repo
fi

yum clean all
yum install -y ruby

gem install puppet facter ruby-shadow
<commit_msg>script puppet pour CentOS fonctionnel pour CentOS 6 et 7<commit_after># Install Puppet

VERSION=$(sed 's/[^0-9]//g' /etc/centos-release)
VERSION=${VERSION:0:1}

if [ "$VERSION" -eq "6" ]
then
    wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
    rpm -Uvh remi-release-6*.rpm 

    # Ajout du repository personnel contenant le package ruby
    echo "[personal-repo-www]" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "gpgcheck=0" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "name=Red Hat Linux $releasever - $basearch" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "baseurl=http://ec2-54-77-188-112.eu-west-1.compute.amazonaws.com/repo/el6/" >> /etc/yum.repos.d/personal-repos-www.repo

    yum clean all
    yum install -y ruby-2.1.2-2.el6.x86_64
elif [ "$VERSION" -eq "7" ]
then
    wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
    rpm -ivh remi-release-7*.rpm 

    # Ajout du repository personnel contenant le package ruby
    echo "[personal-repo-www]" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "gpgcheck=0" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "name=Red Hat Linux $releasever - $basearch" >> /etc/yum.repos.d/personal-repos-www.repo
    echo "baseurl=http://ec2-54-77-188-112.eu-west-1.compute.amazonaws.com/repo/el7/" >> /etc/yum.repos.d/personal-repos-www.repo

    yum clean all
    yum install -y ruby-2.1.3-2.el7.centos.x86_64
fi

gem install puppet facter ruby-shadow

{'fraction_non_alphanumeric': 0.1639226914817466, 'fraction_numerical': 0.03400143163922691, 'mean_word_length': 3.2802450229709037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, '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': '4087215', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1064, 'n_words': 193}