Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

What is Foreman and Its use cases?

Foreman is a complete lifecycle management tool for physical and virtual servers. We give system administrators the power to easily automate repetitive tasks, quickly deploy applications, and proactively manage servers, on-premise or in the cloud.

Foreman is an open source project that helps system administrators manage servers throughout their lifecycle, from provisioning and configuration to orchestration and monitoring.

Provisioning support gives you easy control of setting up new servers, and using configuration management (Puppet, Ansible, Chef and Salt are supported), you can easily automate repetitive tasks.

With Foreman, you can quickly deploy applications, and proactively manage change, both on-premise with VMs and bare-metal or in the cloud. Foreman scales well to multiple locations (offices, data centres, etc) and multiple organisations, allowing you to grow without losing your single source of infrastructure truth.

Foreman provides provisioning on bare-metal (through managed DHCP, DNS, TFTP, and PXE-based unattended installations), virtualization and cloud. Foreman provides comprehensive, auditable interaction facilities including a web frontend, a command line interface, and a robust REST API.

Foreman, provides comprehensive, interaction facilities including a web frontend, CLI and RESTful API which enables you to build higher level business logic on top of a solid foundation. It is deployed in many organizations, managing from 10s to 10,000s of servers. Several commercial products are based on Foreman.

The Foreman installer is a collection of Puppet modules that installs everything required for a full working Foreman setup. It uses native OS packaging (e.g. RPM and .deb packages) and adds necessary configuration for the complete installation.

Supported platforms of Foreman

  • CentOS 7 x86_64
  • CentOS 8 x86_64
  • Debian 10 (Buster), amd64
  • Red Hat Enterprise Linux 7, x86_64
  • Red Hat Enterprise Linux 8, x86_64
  • Ubuntu 18.04 (Bionic), amd64

High-level overview of Foreman

  • Discover, provision and upgrade your entire bare-metal infrastructure
  • Create and manage instances in virtualization environment and across private and public clouds
  • Install operating systems via PXE, local media or from templates or images
  • Control and gather reports from your configuration management software
  • Group your hosts and manage them in bulk, regardless of location
  • Review historical changes for auditing or troubleshooting
  • Web user interface, JSON REST API and CLI for Linux
  • Extend as needed via a robust plugin architecture

Feature of Foreman

Provision from anywhere
Bare metal (MaaS), Amazon EC2, Google Compute Engine, OpenStack, Libvirt, oVirt, VMware, and many other providers allow you to manage a hybrid cloud through Foreman.

Configuration
An external node classifier, hiera-like parameters, and reports monitoring for Puppet, Salt and Chef are included. Completely ready to tweak host groups in your data center.

Monitor hosts
Foreman reports will tell you exactly what happened in your nodes, and alert you when things go awry. See in your dashboard which hosts are healthy, and which ones are outdated.

CLI
UIs slow you down? Hammer CLI gives you easy access to all the API calls you need to stay on top of your data center.

API
We provide a RESTful API to give you the power to automate most tasks, such as registering hosts, assigning roles to users

RBAC and LDAP integration
A thorough authorization system based on role based access control (RBAC) allows for tight policies for your Foreman users. If you use LDAP or FreeIPA, you can continue using them for authentication and authorization.

Audits
No more wondering why did your load balancer suddenly became a database. Check how, who and when in our audits system.

Plugins
A pluggable architecture allows you to extend Foreman in almost any direction.

Host groups
Horizontal scaling is an ubiquitous architecture in IT. Group your hosts and modify their configuration as if they were just one with Foreman.

Detailed Notable features

Installation and usability

  • Easy POC installation: With a dedicated one-command installer with answer file support and automation, Foreman can be easily evaluated or customized as required.
  • Plugin architecture: Most Foreman features are provided as plugins for either Foreman Core application or Foreman Proxy service.
  • Web User Interface: Powerful web UI built on modern technologies.
  • API/CLI: Powerful API, whole infrastructure can be managed via external tools.
  • Community powered: Foreman ships with many configuration and remote execution templates maintained by the community.

Inventory

  • Hosts inventory: Inventory of managed servers (nodes).
  • Host groups: Host grouping with common options, parameters and support for field inheritance.
  • NIC discovery: Automatic creation of network interfaces (regular, bond, bridge, VLAN), Operating System and Architecture (according to facts reported by hosts).
  • Common search: Powerful search across whole application with smart completion.
  • Bookmarks: Saved common search queries as bookmarks for repetitive use.
  • Subnet & Domain inventory: Manage any number of networks via Foreman Proxy DHCP & DNS modules (including VLANs).
  • IPAM: Manage DHCP reservations on various providers like ISC DHCP, MS DHCP or Infoblox, free IP addresses can be allocated on the fly or via Foreman – database.
  • DNS and identity management: DNS or realm entries can be automatically created for each host in Foreman inventory.

Provisioning

  • Manage PXE: Foreman provides full management of PXE configuration of PXELinux, Grub, Grub2 and iPXE for maximum network boot flexibility.
  • Install OS: Initiate unattended provisioning of various Operating Systems via extensive set of templates and snippets maintained by the community.
  • Build VMs: Integrate with hypervisors like VMWare vCenter, Red Hat Enterprise Virtualization, oVirt or libvirt to create instances directly from Foreman UI/API/CLI either from images or via PXE.
  • Create cloud instances: Integrate with clouds like OpenStack, Rackspace, Amazon EC2 or Google Compute Engine directly from Foreman UI/API/CLI.
  • Host network configuration: Provisioning templates which create network configuration for installed hosts including bonding, bridging and VLAN trunk support.
  • Configuration management bootstrap: Template snippets for bootstrapping initial configuration of configuration management software including signing client keys with CA.
  • IPv6: Foreman can manage IPv6 addresses on non-provisioning interfaces (PXE provisioning on IPv6 is work in progress)
  • Templating engine: Templates based on ERB for OS installation recipes (Kickstart, Preseed), jobs (SSH scripts, Ansible jobs), partitioning schemes and other types.
  • Compute Resources: Modules or plugins for integration with hypervisors and cloud infrastructure.
  • Compute Profiles: Common compute profiles across multiple clouds or virtualization (e.g. xxsmall, large, medium).

Server discovery

  • Host discovery: Boot unknown hardware from network or via local media (USB stick) and let it register to Foreman for automated or on-demand provisioning.
  • Provisioning of discovered nodes: Automatic, semi-automatic or fully manual provisioning of discovered hardware via WebUI/CLI/API.

Large teams support

  • Host parameters: Flexible parameters engine for hosts and associated objects (subnets, domains, host groups) with dynamically generated hierarchical Key/Value maps called Smart Variables/Class Parameters.
  • Foreman proxies: Components running inside data centres, subnets or remote sites providing connection to managed nodes and services using REST HTTPS API.
  • Authentication: Username and password authentication with brute-force protection, POSIX LDAP, FreeIPA and MSAD authentication integration.
  • Authorization: Fine-grained role-based access controls (RBAC) for users, roles, LDAP mapping
    Authorization filters: Ability to assign authorization permissions to filtered objects (e.g. hostnames starting with ‘test-‘).
  • Multitenancy: Most resources in Foreman can be assigned to Organizations and Locations as a flexible authorization mechanism for multiple organizations or sites.
  • Kerberos: Foreman supports automatically creating FreeIPA Realm entries for new hosts.
  • HTTP Proxy: For some communication of managed nodes or Foreman itself.

Reporting and monitoring

  • Dashboard: Fully configurable dashboard with widgets and statistics.
  • Facts: Inventory of facts reported by configuration management agents (Facter, Ansible, Salt grains).
  • Trends: Track changes in Foreman infrastructure over time, including key Foreman resources or facts.
  • Audit: Detailed audit trail with per-field granularity and diff feature for config templates and reports.
  • Report templates: Thanks to report templates you can generate custom text reports based on data that are available in Foreman. The output can be csv, yaml, json. Templates can contain additional logic and the report can be customized when it’s generated.

Remote execution (plugin)

  • Job invocations: Running arbitrary commands or scripts on remote hosts using different providers, such as SSH or Ansible. This includes scheduling future runs, recurring execution, concurrency control, watching the progress and output live.

Puppet integration

  • Puppet classes: Ability to import and parse Puppet source code base and recognize class parameters for deep mapping integration through the application.
  • Puppet CA: Integration with puppet CA for automatic, semi-automatic or fully automatic client cert sign process.
  • Puppet ENC: Puppet node classifier (source of input) for Puppet Master.
  • Configuration reports: Inventory of reports from configuration management systems with diff feature and runtime statistics and graphs.

Ansible integration (plugin)

  • Ansible roles: Ability to import and parse Ansible source code for deeper integration. In combination with remote execution, provides configuration management like user experience with Ansible. User assign roles to hosts/hostgroups and then enforces the policy defined by these roles on a host. Every such Ansible run updates host facts and generates new configuration report. Roles behaviour can be customized by Foreman parametrization that is passed to the Ansible inventory.
  • Ansible inventory: Source inventory for Ansible.
  • Configuration reports: Inventory of reports from configuration management systems with diff feature and runtime statistics and graphs.

Compliance management (plugin)

  • Compliance management: Define a compliance policy using OpenSCAP standards and tooling, and then enforce it in infrastructure. Supports existing XCCDF profiles and tailoring of them according to user needs.

Content management (plugin)

  • Yum, deb, and Puppet Repositories: Create, organize, and manage local yum, deb, and puppet repositories. Sync remote repositories or upload content directly to build a library of content that serves as the basis for building custom builds of your content.
  • Content snapshots: Take your local content and filter out packages, errata and puppet modules to create custom builds into units called Content Views. Make your custom builds available to your hosts by moving it through environment paths that mimic traditional development workflows (Dev → QE → Stage → Production).
  • Package and Errata Updates: Use your locally managed content to install package and errata updates to a host or group of hosts.
  • Host collections: A mechanism to statically group multiple Content Hosts. This enables administrators to group Content Hosts based on the needs of their organization. For example, Content Hosts could be grouped by function, department or business unit.
  • Standard Operating Environment: Create and maintain a Standard Operating Environment (SOE).

Reference

  • https://github.com/theforeman/foreman
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)