SlideShare a Scribd company logo
Elixir |> Production
How Do?
Jeff Weiss, Puppet Labs, @jeffweiss
application
|> conform

|> exrm

|> fpm

|> publish(:apt_repo)

|> puppet_module( fn {package, file, service} ->

install(package, :latest)

Node.self()

|> server_specific_config(:hiera)

|> write_config(file)

ensure_running(service)

end)
conform
Generates key=value config file from *.exs

Can include settings of dependencies

Thank you, Paul Schoenfelder
exrm
Consistent CI location to get appup

version number: 

git describe | cut -d - -f1,3 -
Mostly LSB-compliant init script

Thank you, Paul Schoenfelder
fpm
symlink 

/etc/app.conf -> /opt/app/releases/#{version}/app.conf

--deb-init #{exrm script}

--config-files #{conform config}

Thank you, Jordan Sissel
publish(:apt_repo)
Publish .deb to pre-configured, internal apt repo

Freight?

¯_(ツ)_/¯ 

Thank you, Puppet Labs Operations
puppet_module
package { application:

ensure => latest

}

file { ‘/etc/app.conf’:

ensure => present,

source => template(‘module/app.conf.erb’),

links => follow,

require => Package[application]

}

service { application:

ensure => running,

subscribe => File[‘/etc/app.conf’]

}
Thank you!
💜

More Related Content

PDF
Elixir Into Production
PDF
Atmosphere 2014
PDF
Learning Elixir as a Rubyist
PDF
Hello elixir (and otp)
PDF
Erlang and Elixir
PDF
Introduction to Elixir
PDF
Flask With Server-Sent Event
PDF
Bootstrap |> Elixir - Easy fun for busy developers
Elixir Into Production
Atmosphere 2014
Learning Elixir as a Rubyist
Hello elixir (and otp)
Erlang and Elixir
Introduction to Elixir
Flask With Server-Sent Event
Bootstrap |> Elixir - Easy fun for busy developers

What's hot (20)

PPTX
Implement server push in flask framework
PDF
Cocoapods and Most common used library in Swift
PPTX
Controlling multiple VMs with the power of Python
PPTX
Introduction to Phoenix Framework (Elixir) 2016-01-07
PDF
Communication in Python and the C10k problem
PDF
Dependency management with Composer
PPTX
Php psr standard 2014 01-22
PPTX
Ansible Network Automation session1
KEY
Linecook - A Chef Alternative
PDF
Introduction to Ansible (Pycon7 2016)
PDF
The Puppet Master on the JVM - PuppetConf 2014
PDF
KKBOX WWDC17 Airplay 2 - Dolphin
PDF
KKBOX WWDC17 Xcode debug - Oliver
PDF
PL/Perl - New Features in PostgreSQL 9.0 201012
PPT
Software Exploitation Techniques by Amit Malik
PDF
Ansible 2.2
KEY
Introdution to Node.js
PPTX
Automated Deployment with Fabric
PDF
infra-as-code
Implement server push in flask framework
Cocoapods and Most common used library in Swift
Controlling multiple VMs with the power of Python
Introduction to Phoenix Framework (Elixir) 2016-01-07
Communication in Python and the C10k problem
Dependency management with Composer
Php psr standard 2014 01-22
Ansible Network Automation session1
Linecook - A Chef Alternative
Introduction to Ansible (Pycon7 2016)
The Puppet Master on the JVM - PuppetConf 2014
KKBOX WWDC17 Airplay 2 - Dolphin
KKBOX WWDC17 Xcode debug - Oliver
PL/Perl - New Features in PostgreSQL 9.0 201012
Software Exploitation Techniques by Amit Malik
Ansible 2.2
Introdution to Node.js
Automated Deployment with Fabric
infra-as-code
Ad

Viewers also liked (15)

PDF
Strength and Weaknesses of Innovation Implementation
PDF
Welcome to AJP Building Maintenance Services ltd.
PDF
Final DBF Report
PDF
Precinct MWF Program Overview Email
DOCX
KristinHuestis
PDF
Yoga camera
PDF
Developing Projects & Research
PDF
Untitled Presentation
PPTX
Empowering Data in Scholarly Publishing
PDF
Student Transtions Report 24.6.15
PPTX
starwest_kanban2015
PPTX
Evaluation question 4
PDF
Risk Sensitive VDP Report Kallanchiya - Final Draft
Strength and Weaknesses of Innovation Implementation
Welcome to AJP Building Maintenance Services ltd.
Final DBF Report
Precinct MWF Program Overview Email
KristinHuestis
Yoga camera
Developing Projects & Research
Untitled Presentation
Empowering Data in Scholarly Publishing
Student Transtions Report 24.6.15
starwest_kanban2015
Evaluation question 4
Risk Sensitive VDP Report Kallanchiya - Final Draft
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
cuic standard and advanced reporting.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
Teaching material agriculture food technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
cuic standard and advanced reporting.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
NewMind AI Weekly Chronicles - August'25 Week I
Reach Out and Touch Someone: Haptics and Empathic Computing
Teaching material agriculture food technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

ElixirConf Lightning Talk: Elixir |> Production