Skip to content

Latest commit

 

History

History
48 lines (42 loc) · 1.58 KB

developer_guide.md

File metadata and controls

48 lines (42 loc) · 1.58 KB

Foreman Google Developer Guide

Initial Setup

Google Cloud Platform

  • Create an account and project at console.cloud.google.com
  • In API & Services > Credentials create new service account (role: Editor)
  • On account detail page go to Keys and create new JSON key

Plugin Installation

# In Foreman folder:
echo "gem 'foreman_google', path: '../foreman_google'" >> bundler.d/foreman_google.local.rb

bundle install

Setup Google Compute Resource and test data

  • In Foreman, go to Infrastructure > Compute Resources and create Compute Resource
name: Google
provider: Google
Certificate Path: JSON file
Zone: select the zone you want
  • Go to Hosts > Operating Systems and create new OS
name: CentOS_Stream
Major Version: 8
Family: Red Hat
Architectures: x86_64
  • Go to Hosts > Provisioning templates and assign OS to the Kickstart default finish template
  • Go back to the OS and set the Kickstart default finish template as default Finish template
  • Go to the Google Compute Resource detail and create new image
Name: centos_stream8_image
Operating System: CentOS_Stream 8
Architecture: x86_64
Username: root
image: centos-stream-8-v*
  • Go to Infrastructure > Domains and create google domain
  • Optional: Create host group with google compute resource for a quicker host creation

Links