<commit_before>#!/bin/sh


echo && echo "Packer ENV"
echo "---------------------------------------------------------------"
echo "CASSANDRA_DEB_VERSION $CASSANDRA_DEB_VERSION"
echo "JMXTRANS_URL $JMXTRANS_URL"
echo "JMXTRANS_FILE $JMXTRANS_FILE"
echo "GRAPHITE_HOST $GRAPHITE_HOST"
echo "PUPPET_HOST $PUPPET_HOST"
echo "PRIAM_WAR_URL $PRIAM_WAR_URL"
echo "PRIAM_WAR_FILE $PRIAM_WAR_FILE"
echo "PRIAM_JAR_URL $PRIAM_JAR_URL"
echo "PRIAM_JAR_FILE $PRIAM_JAR_FILE"

export CASSANDRA_VERSION="$CASSANDRA_DEB_VERSION"

echo && echo "apt-get all the things"
echo "---------------------------------------------------------------"
echo "deb http://archive.canonical.com/ precise partner" | sudo tee -a /etc/apt/sources.list.d/java.sources.list
sudo apt-get -y update
sudo apt-get -y install --fix-missing facter
sudo apt-get -y install --fix-missing libjna-java
sudo apt-get -y install --fix-missing htop
sudo apt-get -y install --fix-missing sysstat
sudo apt-get -y install --fix-missing iftop
sudo apt-get -y install --fix-missing binutils
sudo apt-get -y install --fix-missing pssh<commit_msg>set sudoers during ami creation<commit_after>#!/bin/sh


echo && echo "Packer ENV"
echo "---------------------------------------------------------------"
echo "CASSANDRA_DEB_VERSION $CASSANDRA_DEB_VERSION"
echo "JMXTRANS_URL $JMXTRANS_URL"
echo "JMXTRANS_FILE $JMXTRANS_FILE"
echo "GRAPHITE_HOST $GRAPHITE_HOST"
echo "PUPPET_HOST $PUPPET_HOST"
echo "PRIAM_WAR_URL $PRIAM_WAR_URL"
echo "PRIAM_WAR_FILE $PRIAM_WAR_FILE"
echo "PRIAM_JAR_URL $PRIAM_JAR_URL"
echo "PRIAM_JAR_FILE $PRIAM_JAR_FILE"

export CASSANDRA_VERSION="$CASSANDRA_DEB_VERSION"

echo && echo "Setting Ubuntu's shell to bash"
echo "---------------------------------------------------------------"
sudo chsh -s /bin/bash ubuntu

echo && echo "apt-get all the things"
echo "---------------------------------------------------------------"
echo "deb http://archive.canonical.com/ precise partner" | sudo tee -a /etc/apt/sources.list.d/java.sources.list
sudo apt-get -y update
sudo apt-get -y install --fix-missing facter
sudo apt-get -y install --fix-missing libjna-java
sudo apt-get -y install --fix-missing htop
sudo apt-get -y install --fix-missing sysstat
sudo apt-get -y install --fix-missing iftop
sudo apt-get -y install --fix-missing binutils
sudo apt-get -y install --fix-missing pssh
{'fraction_non_alphanumeric': 0.23014517506404783, 'fraction_numerical': 0.0, 'mean_word_length': 2.5553869499241273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5417009', 'n_tokens_mistral': 819, 'n_tokens_neox': 788, 'n_words': 210}