Campus Ubuntu Foreman & Puppet

Similar documents
Redhat OpenStack 5.0 and PLUMgrid OpenStack Networking Suite 2.0 Installation Hands-on lab guide

Virtual Machines - Ubuntu Host with Windows Guest

Cisco VDS Service Broker Software Installation Guide for UCS Platforms

How To Set User Account Password In Windows 7 From Guest

Endian Proxy / Firewall

OpenStack Havana All-in-One lab on VMware Workstation

Using the SSM Administration Console

Freshservice Discovery Probe User Guide

[Pick the date] DS-300 Configuration Guide v 5.7

Static Ip Address Problems Windows 7 Setup. Virtual >>>CLICK HERE<<<

SANS Institute - Operations Essentials. Operating System Installation Guidelines. Windows XP Professional Installation. Creating Boot Disks

Kardia / Centrallix VM Appliance Quick Reference

How to Install Ubuntu on VirtualBox

How To Reset Your Computer To Factory Settings Windows Vista Without Cd

Building a 64-bit CentOS 7 Workstation using Oracle Virtual Box

VI-CENTER EXTENDED ENTERPRISE EDITION GETTING STARTED GUIDE. Version: 4.5

Web Console Setup & User Guide. Version 7.1

How To Force Restore A Computer That Won Boot Up After System

Fedora Core: Made Simple

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

magento_1:full_page_cache

Lab 1: Accessing the Linux Operating System Spring 2009

Deploy and Secure an Internet Facing Application with the Barracuda Web Application Firewall in Amazon Web Services

For my installation, I created a VMware virtual machine with 128 MB of ram and a.1 GB hard drive (102 MB).

Reinstalling the Operating System on the Dell PowerVault 745N

OS10 Virtualization Guide. Enterprise Edition

Implementing Infoblox Data Connector 2.0

Welcome to our walkthrough of Setting up an AWS EC2 Instance

SmartPath EMS VMA Virtual Appliance Quick Start Guide

magento_1:full_page_cache

Symantec Drive Encryption Evaluation Guide

Manual for Creating a Network Load-Testing System. Paul Ethridge

Format Hard Drive After Install Ubuntu From Usb External

Windows. Not just for houses

Customer Attributes. Creating New Customer Attributes. For more details see the Customer Attributes extension page.

This is Lab Worksheet 7 - not an Assignment

Amahi Instruction Manual

Kaspersky ONE. Universal Security. Smartphone. Security Solution. Tablet. Devices. Quick Start Guide

WA2342 NoSQL Systems Comparison. Lab Server VM Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

AsteriskNow Polycom SoundPoint IP 335 & 550 Provisioning In FreePBX

3 INSTALLING WINDOWS XP PROFESSIONAL

Install New External Hard Drive Windows 7 Upgrade After Installing >>>CLICK HERE<<<

Figure 1-1. When we finish Part 2, our server will be ready to have workstations join the domain and start sharing files. Now here we go!

Back Up/Restore Hard Drives And Partitions With CloneZilla Live

Your Mission: Connect to a remote Linux target(s) disk using F-Response Consultant Edition.

Alongside Windows 8.1

Usb Port On Manually Create Bootable Windows Xp Install Driver

Kardia / Centrallix VM Appliance Quick Reference

AsteriskNow IPTables Firewall Configuration

Microsoft Exchange Proxy Settings Outlook 2010 Gpo

Configuring GNS3 for CCNA Security Exam (for Windows) Software Requirements to Run GNS3

Dell EMC Repository Manager Version 3.1. Troubleshooting Guide

CIT 470: Advanced Network and System Administration. Topics. Workstation Management. Workstations

DESCRIPTION OF TYPICAL NETWORK SERVICES ON SERVERS

If You Set The Ip Address Manually You Will Not Need To Provide Dns Server Information Manually

Upgrading the System

Windows 7 Will Not Load On My Computer Says Its

Configuring Cisco UCS Server Pools and Policies

XLink Kai Raspberry Pi Beginners Tutorial

Production Installation and Configuration. Openfiler NSA

dctrack Quick Setup Guide Virtual Machine Requirements Requirements Requirements Preparing to Install dctrack

Intel Server RAID Controller U2-1 Integration Guide For Microsoft* Windows NT* 4.0

1) Introduction ) Network Overview ) Port Forwarding Notes... What is Port Forwarding?.. Port Forwarding through Two Routers...

Windows 7 Will Not Install On My Computer Says I'm

dctrack Quick Setup Guide (Recommended) Obtain a dctrack Support Website Username and Password

Amazon WorkSpaces Application Manager. Administration Guide

Configure Static Ip Address Windows 7 Setup Up

Asus_TFTP_Flash. tftp client is enabled in the default installation of WinXP

Be smart. Think open source.

Dell Flexible Computing Solutions: Deploying On-Demand Desktop Streaming

27 ThinManager Troubleshooting Guide

Upgrading from TrafficShield 3.2.X to Application Security Module 9.2.3

Windows 7 Manual Partition Hard Drive During Install Xp

QLogic iscsi Boot for HP FlexFabric Adapters User Guide

Dark Web Investigation Setup Guide.

QuickStart Guide for Managing Computers. Version

Ubuntu - How to Create Software RAID 1 in Ubuntu Linux - Tutorial

KACE Systems Deployment Appliance 5.0. Administrator Guide

CAD-CARE TROUBLESHOOTING GUIDE

How To Manually Restart Pxe Service Point

Windows. Not just for houses

Manually Mount External Hard Drive Windows 7 Install

This is Lab Worksheet/Installation 7

Manual Format Windows 7 With Cd Steps To

Thermal Printer Configuration (EPSON)

Flash Drive Won T Mount Windows 7 Won T Recognize

Raspberry Pi Kernel-o-Matic

Networks Lab Pod Diagram

N-central Deployment Best Practices

Getting Started Guide. Installation and Setup Instructions. For version Copyright 2009 Code 42 Software, Inc. All rights reserved

Get VirtualBox. VirtualBox/Ubuntu Setup. Go to and select Downloads.

QuickStart Guide for Managing Computers. Version 9.73

User Guide Windows 7 New Account Created. Automatically >>>CLICK HERE<<<

VIRTUALBOX UBUNTU EBOOK

RTiQ User s Guide. Version 1.0 July 16, 2018

UCS Director 5.4 Windows/Linux CSV Workflow Deployment

LAN Setup Reflection

Cloud Desktop OS Quick Start Guide

AudioCodes 310HD and Elastix Server

REPAIRTECH CREATING A PRE-INSTALLATION ENVIRONMENT FOR TECHWARU USING WIN7PEBUILDER

Transcription:

1/19 Campus Ubuntu 14.04 Foreman & Puppet Installation The current 14.04 build has been tested on: Optiplex - 745, 755, 760, 780, 790, 7010 Precision - T5500, T7500, T5600, T7600, T5610*, T7610*, T5810*, T7810*, T7910* *RAID controllers seem to change frequently, which adds more time to testing. Basic steps Register the system as ususal in NETDB, with the RST-PXE DHCP option. Boot the system if there are two onboard network adapters, disable the second adapter in BIOS. Boot from the NIC to connect to our IPXE server. Boot the Foreman Discovery Image. Use Foreman to configure the build, add packages, add local users, add local admins. Foreman will reboot once, apply the build, install packages and in around an hour or so it should be finished ready to login. Detailed Installation Procedure 1. Unbox the system and look for the barcode label printed by Asset Management. This code is a copy of the system's serial number and needs to be placed in an easy-to-find location, usually on top of the system's case, near the manufacturers own label. 2. Boot the system into its BIOS, usually with F12, on most of the modern Dell hardware. 3. Under the BIOS > Drives settings, disable the 'Floppy Disk' if there is not one present - this is personal preference. 4. Under the BIOS > Integrated Devices, find the network adapters and enable the primary adapter for PXE. 5. Under the BIOS > Virtualization settings, make sure the options are checked. These have typically came checked from Dell, but it is good to review. Without these options checked, the instruction set of the processor can not understand 64-bit virtual hosts. Now, if this system is one of the T7610 or T7910 Precision workstations, they come with dual onboard NICs. In the BIOS, under Integrated Devices, disable the secondary NIC. When there are two NICs present, our build scripts attempt to use the first NIC, eth0/em1 to PXE, then tries to use eth1/em2 to build from. It's confusing and troublesome, thus we just disable the secondary NIC. If for some reason, the user needs the second NIC, its easy enough to re-enable in BIOS, then add to the systems registration after the build is complete. NetDB 1. Register the system to the correct owner/group just like any other system in our mst-users domain..managed.mst.edu

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build 2. 3. Under the NetDB options, set the DHCP option to PXE-RST 4. Add the proper location and description to the system. This is important as it saves some legwork when determining what system someone called in a request about. 5. In the Admin comments section, add Ubuntu 14.04 Workstation. Since we can search the fields in NetDB, we use this field for tracking systems to some extent. 6. Rebooting to ipxe 1. Reboot the system and hit F12 for the Boot Menu 2. Once it goes through the POST sequence, select the Onboard NIC. 3. Based on the correct DHCP option in NetDB, this will then boot to our ipxe server. ipxe boot screen https://wiki.mst.edu/itrst/ Printed on

3/19 ITRSS ipxe Menu Select Foreman Discovery Image

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build NOTES about Foreman/Puppet Foreman/Puppet is a similar setup to our current Template Generator For Windows 7. Effectively, Foreman is configured to name the system, auto-assign it to the.managed.mst.edu domain, provides an interface of adding software packages we have built, add machine admins, add SSH users and it provides an interval based monitoring system where we can see what is online, updated, out-of-sequence, being built all in real-time. While the Discovery Image is loading, open a browser and go to https://rssinst.srv.mst.edu/ Accept the security certificate if prompted. * When ipxe boots, and you select the Discovery Image, it will appear to be doing something. It is pulling our discovery image down and prepping the system to be 'discovered' by Foreman. https://wiki.mst.edu/itrst/ Printed on

5/19 As the image boots, when it gets to the point where you see what is in the yellow box, the system has sent the requests back to the Foreman server. This may take a minute or so. We have hostname based provisioning configured, however if you are using a custom host name you

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build may be required to use the steps below regarding discovered hosts. You will know this to be the case if the host doesn't automatically reboot after a few seconds of displaying the portion in the yellow box. Back on the Foreman website, click on the Hosts > Discovered Hosts menu. Click on the mac############ link Clicking on the mac############ link will go to the Provision page. Provisioning is what Foreman does to configure the system to build and this page is a summary of what Foreman knows about the system as this point. Click the blue Provision button to continue. https://wiki.mst.edu/itrst/ Printed on

7/19 When provisioning, the first tab you will see is the Host tab. Here, enter the name of the system..managed.mst.edu is not needed as it will auto-populate. Under the Host Group, select Workstation. As you can see, we have a few options available. These are different, pre-configured options to tell Foreman what to install, based on the need of the system. Most of what we do are Workstations, with a few VMware-Workstations. Next, click on the Puppet Classes tab.

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build Basically, the Puppet Classes are the packages we have created for Foreman to install. Similar to our template generator, where we select the software we want to install, the classes operate in a similar manner. When you expand the wk_pkgs (workstation packages), selecting the + sign next to the package name, adds that package to the build list. https://wiki.mst.edu/itrst/ Printed on

9/19 Once the correct packages are added, visit the Network tab. Everything here is auto-populated. There should not be anything that needs to be entered, however, being Foreman's connection to the systems is based on IP address, there is always that chance where, during a reboot, the system picked up another IP address. When this happens, you will need to ping the system name, take its new IP address and insert that new address into the IP address field. This has only happened a couple of times. After the Network tab is the Operating System tab. In a larger setting, where multiple operating systems are supported, this is the summary page telling the installer what will be used. Everything here is set be default. Our Ubuntu workstation build is about 10GB in size. We usually make virtual machines in the 50GB+ range, to accommodate for user data or other software packages like Ansys or Matlab.

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build After the OS tab, comes the Parameters Tab. https://wiki.mst.edu/itrst/ Printed on

11/19 Again, options here are set as default, but we can add localadmins and localusers. Admins allows SSH access and 'sudo' access. Users are just SSH capable. Add Privileges to Users on Campus Ubuntu On the Additional Information tab, this lists the machine owner, or really the installer that built the system. The Hardware Model is just that, desktop models, precision models, VMware, Virtualbox, etc. The Comments section can contain details about the build, its purpose, specific non-campus software, or other special considerations. Installation Now that each tab has been seen and updated, the configuration is ready. Click the blue Submit button when ready to start the build. You will see it being the preseed installation, much like a non-gui install of linux.

https://wiki.mst.edu/itrst/ pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build Printed on

13/19

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build Now, at the end of the magenta install screens, there will come a point where you will see this. https://wiki.mst.edu/itrst/ Printed on

15/19 This screen is somewhat deceiving. The build is still going and will probably run for about an hour, depending on your connection speed. On real hardware, you will see the hard drive activity light constantly flashing during the build. When it is complete, the activity will slow down, you will see a login screen, and you can check the All Hosts page in Foreman and if it has a green O (for online) the system is built. When the build is complete you should see this:

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build At this point, the system is ready to be logged into. There are more finer points to the build, like the S drive, printers and adding other software from the Ubuntu repos or elsewhere. Those tutorials are in process. Adding Software Adding supported software titles to an existing installation is as easy as editing the host in foreman, visit https://rssinst.srv.mst.edu, sign in, and go to the hosts tab and search for the host you would like to change. https://wiki.mst.edu/itrst/ Printed on

17/19 Then click the Puppet Classes tab and wk_pkgs, the plus button adds the package to the machine and it should begin installing inside 30 minutes of being added to the system. Troubleshooting

pub:ubuntu_14.04_campus_build https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build DNS conflict errors Sometimes Foreman will not flush it's dns entries of systems that have long since changed IP addresses and the system you are trying to build will grab an IP that the Foreman server thinks is someone else. This causes a dns reverse lookup error to occur, to resolve the conflict we have to remove the offending IP from the reverse lookup table and restart the dns service on rssinst. Here's how you do that: ssh rssinst.srv.mst.edu sudo -i cd /var/cache/bind/zones vi db.151.131.in-addr.arpa In this file IP addresses are broken down by octet in reverse order, see picture: For example, if you're looking for IP 131.151.53.112, you'll search for the header 53.151.131.inaddr.arpa and under that will be an entry for 112 and a hostname Foreman thinks is associated with that IP. Just delete that line. Please note (I don't really think you're going to do this, but CYA and all that) don't actually delete 53.112 unless that's actually the machine you're having issues with, please search for the proper 3rd and 4th octets and delete the line that is the IP of the machine actually giving you issues. Now save the file and go out to the system and restart the bind service. service bind9 restart Then retry your build attempt. https://wiki.mst.edu/itrst/ Printed on

19/19 From: https://wiki.mst.edu/itrst/ - IT Research Support Team Permanent link: https://wiki.mst.edu/itrst/pub/ubuntu_14.04_campus_build