Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infrastructure as code #2

Open
ghost opened this issue May 3, 2018 · 48 comments
Open

Infrastructure as code #2

ghost opened this issue May 3, 2018 · 48 comments
Labels
topic DevOps relevant topics

Comments

@ghost
Copy link

ghost commented May 3, 2018

References:

I don't think it is possible to have a "dev ops" environment without some kind of Configuration Management Tool.
They make it possible to configure an environment through scripts.
The big advantage of a tool like this is that new virtual machine or container instances can be easily created or updated.
The most common solutions here I think are Ansible, Puppet, Chef and Salt.

It is probably best to pick one tool and have practical scripting exercises how to an enviroment can be configured programmatically.

@monperrus
Copy link
Member

Hi Göran,

Thanks for your suggestion.

Among Ansible, Puppet, Chef and Salt, what's the one with the best documentation, in particular getting started and tutorials pages to your opinion?

@monperrus monperrus changed the title Configuration Management Tools Configuration Management Tools (eg ansible) Aug 20, 2018
@monperrus
Copy link
Member

monperrus commented Aug 27, 2018

Terminology: infrastructure as code (IaC) #22

@monperrus
Copy link
Member

monperrus commented Aug 27, 2018

Reading material:
GitOps: A Path to More Self-Service IT
https://cacm.acm.org/magazines/2018/9/230599-gitops/fulltext

"Use Cases for GitOps. DNS is an obvious place to start, as are VM creation, container maintenance and orchestration, firewall rules, website updates, blog posts, email aliases and mailing lists, and just about any virtual infrastructure or one with a configuration file or API."

@MatsJonsson
Copy link

MatsJonsson commented Oct 11, 2018

We've done this with Ansible and Salt in a couple of big projects, only to end up with huge amounts of stuff just to get the actual stuff working.

Terraform

The move to Terraform and Hashicorp Configuration Language (HCL) made life a lot easier https://www.terraform.io/.

@bittermandel
Copy link

bittermandel commented Oct 18, 2018

We're running Salt extensively on thousands of nodes. It's working great for us and gives us great power in controlling our "standard" environments

https://saltproject.io/

@alanmcg
Copy link

alanmcg commented Nov 6, 2018

I have seen this implemented with puppet, both badly and very well, in different organisations.

@gluckzhang gluckzhang added the topic DevOps relevant topics label Mar 25, 2019
@monperrus
Copy link
Member

How good is your puppet? an empirically defined and validated quality model for puppet
https://pure.tudelft.nl/portal/files/37386939/how_good_is_your_puppet.pdf

@bbaudry
Copy link
Collaborator

bbaudry commented May 20, 2019

Molecule is a tool for testing ansible scripts
https://molecule.readthedocs.io/en/stable/#

@monperrus
Copy link
Member

Using Testinfra with Ansible to verify server state
https://opensource.com/article/19/5/using-testinfra-ansible-verify-server-state

@monperrus
Copy link
Member

Python library to create AWS CloudFormation descriptions
https://github.com/cloudtools/troposphere

@monperrus
Copy link
Member

Pulumi - Infrastructure as Code
https://www.pulumi.com/

@monperrus monperrus changed the title Configuration Management Tools (eg ansible) Configuration Management Tools / Infrastructure as code Nov 4, 2019
@bbaudry
Copy link
Collaborator

bbaudry commented Jun 2, 2020

The 'as Code' Activities: Development Anti-patterns for Infrastructure as Code
http://arxiv.org/abs/2006.00177

@bbaudry
Copy link
Collaborator

bbaudry commented Sep 10, 2020

Automating web applications proxying, DNS registration and TLS termination with ansible

https://bpetit.nce.re/2018/03/automating-web-applications-proxying-dns-registration-and-tls-termination-with-ansible/

@bbaudry
Copy link
Collaborator

bbaudry commented Nov 2, 2020

kustomize lets you customize raw, template-free YAML files for multiple purposes

@monperrus
Copy link
Member

Free version of Morris' book on infrastructure as code: https://us-east-1.linodeobjects.com/marketing-assets/Infrastructure_as_Code_2E-ER_Linode.pdf

@monperrus
Copy link
Member

See accepted papers at CONFLANG, workshop on the design, the theory, the practice and the future evolution of configuration languages.

https://2021.splashcon.org/home/conflang-2021#event-overview

@monperrus monperrus changed the title Configuration Management Tools / Infrastructure as code Infrastructure as code Feb 1, 2022
@monperrus
Copy link
Member

Luke Hoban on Infrastructure as Code IEEE Software

@monperrus
Copy link
Member

CUE: Configure Unify Execute "Validate, define, and use dynamic and text-based data"
https://cuelang.org/

@monperrus
Copy link
Member

Dhall is a programmable configuration language that you can think of as: JSON + functions + types + imports
https://dhall-lang.org/

@matsskoglund
Copy link

Tool for vulnerability scanning of Infrastructure as Code https://www.checkov.io/

@mechtaev
Copy link

Nickel's purpose is to automate the generation of static configuration files - think JSON, YAML, XML, or your favorite data representation language - that are then fed to another system. It is designed to have a simple, well-understood core: it is in essence JSON with functions.
https://nickel-lang.org/

This is relevant to Dhall.

@mechtaev
Copy link

Earthly is a CI/CD framework that allows you to develop pipelines locally and run them anywhere. Earthly leverages containers for the execution of pipelines. This makes them self-contained, repeatable, portable and parallel.

@monperrus
Copy link
Member

monperrus commented May 10, 2022

HashiCorp Packer
Packer is a free and open source tool for creating golden images for multiple platforms from a single source configuration.
https://www.packer.io

@monperrus
Copy link
Member

GitOps: The Evolution of DevOps? (IEEE Software)

@monperrus
Copy link
Member

@monperrus
Copy link
Member

@bbaudry
Copy link
Collaborator

bbaudry commented Nov 29, 2022

Material for the Ansible Up & Running book: https://github.com/ansiblebook

@monperrus
Copy link
Member

@monperrus
Copy link
Member

Skaffold handles the workflow for building, pushing and deploying your application, allowing you to focus on what matters most: writing code.
https://skaffold.dev/

@monperrus
Copy link
Member

@monperrus
Copy link
Member

Mars is an infrastructure-as-code tool for Ethereum
https://github.com/TrueFiEng/Mars

@monperrus
Copy link
Member

CircleCI orbs: package management ecosystem for CircleCI configuration
https://circleci.com/docs/orb-intro/

@bbaudry
Copy link
Collaborator

bbaudry commented Apr 17, 2023

Vulnerability Scanner for Containers and other Artifacts with trivy

@bbaudry
Copy link
Collaborator

bbaudry commented Apr 19, 2023

Mining for Cost Awareness in the Infrastructure as Code Artifacts of Cloud-based Applications: an Exploratory Study.
http://arxiv.org/abs/2304.07531

@monperrus
Copy link
Member

Testing idempotence for infrastructure as code
https://dsg.tuwien.ac.at/team/hummer/docs/2013-middleware-iac.pdf

@monperrus
Copy link
Member

werf: CD and gitops for Kubernetes
https://werf.io/

tutorial by https://killercoda.com/jarns-zeiher/scenario/Simple-End-to-End-GitOps-with-Werf

@monperrus
Copy link
Member

OpenTofu lets you declaratively manage your cloud infrastructure.
https://github.com/opentofu/opentofu

@monperrus
Copy link
Member

Infrastructure-as-Code Ecosystems
https://link.springer.com/chapter/10.1007/978-3-031-36060-2_9

@monperrus
Copy link
Member

Starlark (formerly known as Skylark) is a language intended for use as a configuration language. It was designed for the Bazel build system, but may be useful for other projects as well.
https://github.com/bazelbuild/starlark

Heavily used in the tensorflow repo

@monperrus
Copy link
Member

Rego is a general-purpose policy language, which means that it works for any layer of the stack and any domain. The primary purpose of Rego is to accept JSON/YAML inputs and data that are evaluated to make policy-enabled decisions about infrastructure resources, identities, and operations.

https://docs.aws.amazon.com/prescriptive-guidance/latest/saas-multitenant-api-access-authorization/rego.html

@monperrus
Copy link
Member

Crossplane is a framework for building cloud native control planes without needing to write code.
https://www.crossplane.io/

@bbaudry
Copy link
Collaborator

bbaudry commented Jul 2, 2024

qq, a query language that supports the main formats for config files
https://github.com/JFryy/qq

@monperrus
Copy link
Member

Bicep is a declarative language for describing and deploying Azure resources
https://github.com/Azure/bicep

@monperrus
Copy link
Member

Otterdog is a tool to manage GitHub organizations at scale using an infrastructure as code approach.
https://otterdog.readthedocs.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic DevOps relevant topics
Projects
None yet
Development

No branches or pull requests

8 participants