DrupalCon Prague 2013

Gestionando Drupal con Chef

Seth Cohn  · 

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

box which part the next session will be about the two topics I like most personally it's drupal and automation with chef so without any delay cloudy with a chance of chickens I give yourself oh thank you thank you all right let's get started here we

had a little technical difficulty we will that going Microsoft PowerPoint don't don't count on it edu good i see you gabar steer horn chairs here in this new disney disney boom is he let's give me the beans no sugar knew he ensured super good he

is here he is alright so what do we call that well clearly that was the meatball service and it had high availability all right so welcome to Drupal chef bork bork bork so Who am I well I'm Seth Cohen everywhere on drupal.org Twitter etc I am an alpha

geek that's my business card say for a day job I am the technical lead at bio raft and I've been doing Drupal for about nine years since four point six days I did tech added a book pro Drupal 7 for Windows developers which i'm very pleased is the

only book that actually analyzed drupal 7 in terms of the technical behind-the-scenes how a page is actually built there's a chapter in there that if you work with drupal 7 and you really want to know what exactly happens or to generate that page it actually

is documented all the way through so that you actually understand what happens to generate that page and that's the piece of the book i'm most proud of is we went through with a fine-tooth comb and really made sure it was accurate I'm a former

politician I actually took two years off from Drupal and got elected to the New Hampshire state house and got open source open data passed into law so I'm one of those activists tech geeks and I'm actually really proud of that I think that's going

to help change the world and Drupal is definitely part of that and finally I'm am up any man or a Maya manly Muppet I'm still not sure which so what is bio raft well I just described it as preventing the nexon the apocalypse my marketing people aren't

that happy with it but they were okay with this slide so it is built entirely using Drupal the software as a service model so we provide everything it we provide lab safety compliance and training software we do things like track hazards compliance management

training delivery basically if you're in one of the institutions at quite a number of universities and some pharmaceutical companies that use our services if you add all enter into a lab we track who you are what kind of lab you're in and what kind

of training you've had etcetera make sure that the labs are safe so we're talking about data and important real-world consequences if that machine goes down if that data gets lost etc this is not a hobby site by any means this has got real world consequences

which is kind of why I joke about the neck Dombey apocalypse because we've all seen those movies and what is it that usually causes those things that's some guy who goes ahead reach us into a rat cage gets a bit and says I don't be okay I'll

go home and next thing you know you know half the world's gone and zombies are everywhere so as long as there has not been a zombie apocalypse I'm doing my job so what are we covering today we are going to cover chef what is it why use it we're

going to cover the basic terms in what I call Drupal ish so basically you currently speak Drupal chef uses a different language my goal is for you to walk out of here understanding what chef does in terms of how you understand Drupal we're going to look

at a very simple example a lamp stack there are certainly a lot more complicated things that can be done but in the interest of time we're going to keep it fairly simple and then finally some basic issues and tips and so what we see there the most interesting

Swedish man in the world who says I don't always deploy lots of service but then I do I use a chef so why chef well it's right there time and money chef is a way to build stable servers for development and production would save you time and money and

well what do we mean by that well without chef right now how do you build and maintain your existing servers who does it do you use package management do you use scripts you build everything from source code combinations who manages those scripts when what

happens if there's an update security OS level changes oh well we were using Debian six and now Debian sevens out so we're going to have to upgrade everything or bone Joe released Isetta patches that yeah they broke something we have to roll things

back there's all kinds of things that come up do you use virtual machines to use physical machines do you push stuff out to Amazon you push something out to Amazon and it works great and then one day the server disappears and of course amazon says well

not our problem we don't guarantee a hundred percent availability it's 99.99 and you just happen to be the one in 10,000 that disappeared today so these are important questions if you're dealing with any kind of reliability personnel changes that's

the last thing the bus factor you've got a great person maybe you're that person who's maintaining servers and if you got hit by a bus tomorrow what would happen to the service what if you are not available for week what if you want to go on vacation

wouldn't it be nice to know that your servers are going to stay up and you're not sitting there sitting with a pager do we all have pagers anymore does anybody have it is it all phones now at this point basically it would be nice to know you have reliability

well that's what chef is about that's what we're focusing on so this is not another what is devs off DevOps talk there's a whole track this is one answer this is not the only answer there's lots of other pieces to this puzzle but my goal

is you walk out of here basically going I'm going to go implement chef because it is a piece of the puzzle that i'm going to use and I hope it fits for you so what is chef it's from a company called opscode and it's about turning infrastructure

into code because we all know that once you turn it into code you can control it you conversion control it you can back it up you can track your changes so that when somebody changes something and it breaks you can figure out exactly who and when that change

happened most people don't have their servers under version control and so they go yeah I think we did something last week but it wasn't me it was I think it was I think it was the other guy this solves that because what we're going to do is we're

going to take everything that is your infrastructure turn it into code and gain all the advantages that we already know code control is good for so Opscode describes it as configuration templates with business logic to describe infrastructure and establish

relationships between boxes which is a fancy way of saying that it's not a simple script there's a lot of complexity to this not only to describe it but it actually allows some interaction so start slow build-up that's one of the things chef has

a lot of pieces chef has a steep learning curve you don't need to do it all at once if you add complexity slowly chef lets your servers work together so you will start rolling things out and as you add new pieces you say i'm going to add logging and

you can add logging and your existing servers can basically if you've written your scripts right start to get logging as soon as that new server comes up 15 minutes later they might recognize hey there's a logging server i need to go and i need to

start sending my logs to them you don't have to start with that you can add the building blocks to it so don't feel like you have to solve everything with chef to start with so we know Drupal can we learn chef I think so and that's the goal of

this talk so we're not covering because there's a lot of things we could talk about we're not going to cover chef vs puppet versus other tools this is a chef talk I've been to chef talks or somebody says well what about puppet well puppets

another answer I have decided to use chef for a variety of reasons and that's one focus on if somebody wants to play with puppet please feel free I will tell you right now I think you're going to come back to chef after you play with it vagrant Baker

it's a great tool for spending of virtual machines I highly recommend it again it's beyond the scope of the talk we could do a whole hour just on vagrant Burke shelf Burke shelf it sits on top of chef it's a way to speed up development once you

understand the basics you appreciate what Burke shelf does there's some great videos on it but again I'm trying to teach the basics so we're not but definitely and I've got it mentioned at the end this is something you want to look at because

what they did was they said well this is great this is the way it normally works is their way to do it faster and better and Burke shelf was the result and there are chef developers out there who thank God the Burke shelf exists because it speeds up so instead

of waiting ten minutes you might wake 30 seconds to test your changes we're not going to cover chef solo which is a way to do some of this stuff just locally on your own machine because my goal again is show you the basics I want you to walk out of here

understanding the core concept of Chef and chef solo sort of bypasses that we're not going to cover spice weasel that's too futuristic you know come back in a thousand years we're not going to cover food critic and a lot of other nifty tools there's

a bunch of Chef add-on I i definitely recommend looking at all of that stuff but again we're going to keep it really simple today my goal is you walk out of here and say I want to know more about chef I'm not satisfied with what I learned I want to

learn more and there are resources so cooking for geeks learning chef begins by understanding the language if you don't speak the lingo it's all Greek I mean I'm sorry it's all mock Swedish so we all speak drupal ish we're going to start

with Drupal so here's the chef's terms we're going to learn you can see there's a little road map there and we're going to come back to this list and hopefully by the time we have gone through these slides you will go ok I understand what

they mean by this as opposed to what we mean so how is chef like drupal what I have here that shows the latest fork from Drupal Paul heard a backdrop and cetera this is this is the rupal which is the Swedish Chef Fork of Drupal know my goal here was to basically

show that we can look at something and even if you don't speak the language you can understand it in the same terms you're used to understanding because that actually is found a Firefox add-on then rewrites the site into mock Swedish and so that's

actually what that is so how can we understand chef concepts well let's compare it to what we understand for Drupal concepts so chef uses Ruby so what how many people here got started with Drupal and weren't necessarily wizards in PHP it's a few

you can learn to you chef without knowing Ruby it helps but if you 5 10 minutes you will have enough Ruby knowledge to get started you do not need to know Ruby in order to use chef actually the most useful thing is one of the same things that it's useful

[ ... ]

Nota: se han omitido las otras 5.834 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.