<commit_before><?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
    xml:id="basic-network-common">
    <title>Common services</title>
    <section xml:id="network-os">
        <title>Operating System</title>
        <orderedlist>
            <listitem>
                <para>Install Ubuntu with this parameters :<itemizedlist>
                    <listitem>
                        <para>Time zone : <emphasis role="bold">UTC</emphasis></para>
                    </listitem>
                    <listitem>
                        <para>Hostname : <emphasis role="bold">folsom-network</emphasis></para>
                    </listitem>
                    <listitem>
                        <para>Packages : <emphasis role="bold">OpenSSH-Server</emphasis></para>
                    </listitem>
                </itemizedlist></para>
                <para>After OS Installation, reboot the server.</para>
            </listitem>
            <listitem>
                <para>Since Ubuntu 12.04 LTS has OpenStack Essex by default, we are going to use
                    Cloud Archives for Folsom :<screen>apt-get install ubuntu-cloud-keyring</screen>Edit
                    <emphasis role="bold">/etc/apt/sources.list.d/cloud-archive.list</emphasis>
                    :<screen>deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main </screen>Upgrade
                    the system (and reboot if you need)
                    :<screen>apt-get update &amp;&amp; apt-get upgrade</screen></para>
            </listitem>
            <listitem>
                <para>Configure the network :</para>
                <para><itemizedlist>
                    <listitem>
                        <para>Edit <emphasis role="bold">/etc/network/interfaces</emphasis> file
                            :</para>
                    </listitem>
                </itemizedlist><screen><userinput># Management Network
auto eth0
    iface eth0 inet static
    address 1172.16.58.3
    netmask 255.255.255.0
    gateway 192.168.0.254
    dns-nameservers 8.8.8.8

# Data Network
    auto eth1
    iface eth1 inet static
    address 10.0.0.1
    netmask 255.255.255.0

# Public Bridge
    auto eth2
    iface eth2 inet manual
    up ifconfig $IFACE 0.0.0.0 up
    up ip link set $IFACE promisc on 
    down ifconfig $IFACE down</userinput></screen>
                </para>
                <para>
                    <itemizedlist>
                        <listitem>
                            <para>Edit <emphasis role="bold">/etc/sysctl.conf
                            </emphasis>:</para>
                        </listitem>
                    </itemizedlist>
                    <programlisting>net.ipv4.ip_forward=1
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0  </programlisting>
                    Then, restart network service :
                    <screen><userinput>service networking restart</userinput></screen>
                </para>
                <para>
                   <itemizedlist>
                        <listitem>
                            <para>Edit the <emphasis role="bold">/etc/hosts</emphasis> file and
                                add <emphasis role="bold">folsom-controller</emphasis>, <emphasis
                                    role="bold">folsom-network</emphasis> and <emphasis role="bold"
                                        >folsom-compute</emphasis> hostnames with correct IP.</para>
                        </listitem>
                    </itemizedlist>
                </para>
            </listitem>
            <listitem>
                <para>Install Configure NTP :<itemizedlist>
                    <listitem>
                        <para>Install the package :<screen><userinput>apt-get install -y ntp</userinput></screen></para>
                    </listitem>
                    <listitem>
                        <para>Configure <emphasis role="bold">/etc/ntp.conf</emphasis> file :<screen><userinput>server 192.168.0.1</userinput></screen></para>
                    </listitem>
                    <listitem>
                        <para>Restart the service
                            :<screen><userinput>service ntp restart</userinput></screen></para>
                    </listitem>
                </itemizedlist></para>
            </listitem>
        </orderedlist>
    </section>
</section>
<commit_msg>Fix DATA IP on network node<commit_after><?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
    xml:id="basic-network-common">
    <title>Common services</title>
    <section xml:id="network-os">
        <title>Operating System</title>
        <orderedlist>
            <listitem>
                <para>Install Ubuntu with this parameters :<itemizedlist>
                    <listitem>
                        <para>Time zone : <emphasis role="bold">UTC</emphasis></para>
                    </listitem>
                    <listitem>
                        <para>Hostname : <emphasis role="bold">folsom-network</emphasis></para>
                    </listitem>
                    <listitem>
                        <para>Packages : <emphasis role="bold">OpenSSH-Server</emphasis></para>
                    </listitem>
                </itemizedlist></para>
                <para>After OS Installation, reboot the server.</para>
            </listitem>
            <listitem>
                <para>Since Ubuntu 12.04 LTS has OpenStack Essex by default, we are going to use
                    Cloud Archives for Folsom :<screen>apt-get install ubuntu-cloud-keyring</screen>Edit
                    <emphasis role="bold">/etc/apt/sources.list.d/cloud-archive.list</emphasis>
                    :<screen>deb http://ubuntu-cloud.archive.canonical.com/ubuntu precise-updates/folsom main </screen>Upgrade
                    the system (and reboot if you need)
                    :<screen>apt-get update &amp;&amp; apt-get upgrade</screen></para>
            </listitem>
            <listitem>
                <para>Configure the network :</para>
                <para><itemizedlist>
                    <listitem>
                        <para>Edit <emphasis role="bold">/etc/network/interfaces</emphasis> file
                            :</para>
                    </listitem>
                </itemizedlist><screen><userinput># Management Network
auto eth0
    iface eth0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.254
    dns-nameservers 8.8.8.8

# Data Network
    auto eth1
    iface eth1 inet static
    address 10.10.10.1
    netmask 255.255.255.0

# Public Bridge
    auto eth2
    iface eth2 inet manual
    up ifconfig $IFACE 0.0.0.0 up
    up ip link set $IFACE promisc on 
    down ifconfig $IFACE down</userinput></screen>
                </para>
                <para>
                    <itemizedlist>
                        <listitem>
                            <para>Edit <emphasis role="bold">/etc/sysctl.conf
                            </emphasis>:</para>
                        </listitem>
                    </itemizedlist>
                    <programlisting>net.ipv4.ip_forward=1
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.default.rp_filter = 0  </programlisting>
                    Then, restart network service :
                    <screen><userinput>service networking restart</userinput></screen>
                </para>
                <para>
                   <itemizedlist>
                        <listitem>
                            <para>Edit the <emphasis role="bold">/etc/hosts</emphasis> file and
                                add <emphasis role="bold">folsom-controller</emphasis>, <emphasis
                                    role="bold">folsom-network</emphasis> and <emphasis role="bold"
                                        >folsom-compute</emphasis> hostnames with correct IP.</para>
                        </listitem>
                    </itemizedlist>
                </para>
            </listitem>
            <listitem>
                <para>Install Configure NTP :<itemizedlist>
                    <listitem>
                        <para>Install the package :<screen><userinput>apt-get install -y ntp</userinput></screen></para>
                    </listitem>
                    <listitem>
                        <para>Configure <emphasis role="bold">/etc/ntp.conf</emphasis> file :<screen><userinput>server 192.168.0.1</userinput></screen></para>
                    </listitem>
                    <listitem>
                        <para>Restart the service
                            :<screen><userinput>service ntp restart</userinput></screen></para>
                    </listitem>
                </itemizedlist></para>
            </listitem>
        </orderedlist>
    </section>
</section>

{'fraction_non_alphanumeric': 0.11678191197453627, 'fraction_numerical': 0.020085610800131708, 'mean_word_length': 1.4285714285714286, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 2, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, 'pii_count': 16, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '532396', 'n_tokens_mistral': 2623, 'n_tokens_neox': 2350, 'n_words': 485}