Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Notorious b.s.d.
Jan 25, 2003

by Reene
clearly you don't need "enterprise" service management on your single vm

just log in and start apache manually after it reboots

lol @ init scripts

Adbot
ADBOT LOVES YOU

Optimus_Rhyme
Apr 15, 2007

are you that mainframe hacker guy?

Notorious b.s.d. posted:

that's the thing, "enterprise level" cm is not a big deal.

on your single host, you run puppet or chef locally. no servers, no proxies, no data stores, no enterprise poo poo. you just write configuration management code and apply it locally and poo poo happens. and you can version control all of it.

if/when you have some enterprise-y needs down the line, THEN you port the code you wrote for your single instance to some bigass enterprise setup. the same drat declarative code will run in the fancy environment as ran locally on your single node with literally no changes, if that's how you want it to be

(in reality you will probably want to change stuff, to make it more reusable and namespace poo poo and so on)

ok, i'm curious now.

On an ubuntu server vps you type

'sudo apt-get install apache'
then 'nano /var/www/whatever.html'

and you've got a minimum website

assuming I've got nothing setup other than ubuntu minimal with sshd, what are the steps to install ansible, write a recipe, etc.

pram
Jun 10, 2001
dont use apache tia

atomicthumbs
Dec 26, 2010


We're in the business of extending man's senses.

Notorious b.s.d. posted:

on your single host, you run puppet or chef locally
i dont

Notorious b.s.d. posted:

if/when you have some enterprise-y needs down the line, )
i wont

triple sulk
Sep 17, 2014



gas

pram
Jun 10, 2001
lol you dont have configuration management on your raspberry pi. just lmao. what if you want to cluster them? huh?

Celexi
Nov 25, 2006

Slava Ukraini!
u guys are really worked up over servers

shitface
Nov 23, 2006

pram posted:

a rest api

pram posted:

incredibly awful

redundant

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮

Celexi posted:

u guys are really worked up over servers

2015 year of linux on the server

VAGENDA OF MANOCIDE
Aug 1, 2004

whoa, what just happened here?







College Slice

pram posted:

lol you dont have configuration management on your raspberry pi. just lmao. what if you want to cluster them? huh?

What if your sd card takes a poo poo

Smythe
Oct 12, 2003
ppl itf told me to install like 8 grand worth of enterprise ubituity etc like server racks or something i dontknow and insane poe routers for an office of of 4 ppl 1 o which cant type due to max lvl arthritis

celeron 300a
Jan 23, 2005

by exmarx
Yam Slacker

Silver Alicorn posted:

2015 year of linux on the server

celeron 300a
Jan 23, 2005

by exmarx
Yam Slacker
SERVER TALK

Let's talk about backups!

When will Open Source write something as good as Time Machine?

Who still uses Amanda? Has anyone actually ever used deja dup?

SYSV Fanfic
Sep 9, 2003

by Pragmatica
Linux was mentioned by another student, right after he finished telling me the amount of time every clock in the school was off by.

Soricidus
Oct 21, 2010
freedom-hating statist shill

celeron 300a posted:

SERVER TALK

Let's talk about backups!

When will Open Source write something as good as Time Machine?

Who still uses Amanda? Has anyone actually ever used deja dup?

i just use duplicity, it's fine

(provided that you like bad clis and your time is worthless, but this is the desktop linux thread i think we can take that as a given)

Athas
Aug 6, 2007

fuck that joker
I can report Debian on the ThinkPad X250 as a very needs suiting laptop for hacking. I only had to apply one kernel patch and compile and install one Xorg video driver from Git.

Lysidas
Jul 26, 2002

John Diefenbaker is a madman who thinks he's John Diefenbaker.
Pillbug

celeron 300a posted:

SERVER TALK

Let's talk about backups!

When will Open Source write something as good as Time Machine?

Who still uses Amanda? Has anyone actually ever used deja dup?

my machines all take btrfs snapshots on boot and i use incremental `btrfs send` to replicate them elsewhere, either an external disk or a private area of my file server at home

btrfs owns

Notorious b.s.d.
Jan 25, 2003

by Reene

Optimus_Rhyme posted:

ok, i'm curious now.

On an ubuntu server vps you type

'sudo apt-get install apache'
then 'nano /var/www/whatever.html'

and you've got a minimum website

assuming I've got nothing setup other than ubuntu minimal with sshd, what are the steps to install ansible, write a recipe, etc.

i'm not going to encourage anyone to use ansible.

to get started with chef would not take you very long

  1. install the chef client (from chef, inc., because god only knows what ubuntu ships)
    curl -o- https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_12.2.1-1_amd64.deb | sudo dpkg -i

  2. clone a skeleton chef repo
    git clone git@github.com:chef/chef-repo.git

  3. add a copy of what you want /var/www/whatever.html to look like
    nano chef-repo/cookbooks/local/templates/default/whatever.html.erb

  4. add a recipe to actually set everything up
    nano chef-repo/cookbooks/local/recipes/default.rb

    code:
    package 'apache2' do
    end
    
    service 'apache2' do
      action [ :enable, :start ]
    end
    
    template '/var/www/whatever.html' do
      owner 'www'
      group 'www'
      mode '444'
      source 'whatever.html.erb'
    end
    
  5. actually run chef
    sudo chef-solo -c chef-repo/config/solo.rb

Notorious b.s.d.
Jan 25, 2003

by Reene
if you don't know ruby you probably want to use puppet instead of chef. puppet is just as good, and in some ways better. most notably: you do not have to learn ruby

i use chef locally all the time, so i knew how to do it off the top of my head. i can't remember how to do it with puppet. never used puppet except for work, where it's all enterprisey and server-based

Notorious b.s.d. fucked around with this message at 13:33 on Apr 3, 2015

compuserved
Mar 20, 2006

Nap Ghost

Athas posted:

I can report Debian on the ThinkPad X250 as a very needs suiting laptop for hacking. I only had to apply one kernel patch and compile and install one Xorg video driver from Git.

what did you have to do specifically? looking to get a thinkpad soon and i'm wondering if i'll run into this

midnightclimax
Dec 3, 2011

by XyloJW
I recently reanimated a Sony Vaio from 2004 (?) with Peppermint Linux, some lightweight Ubuntu-based lxdm distro. Boots crazy fast, only thing worrying is the static noise it makes when I touch the right-hand side while its plugged in. Also the brightness button don't work. And the vol up down button. Other than that, excellent!

Notorious b.s.d.
Jan 25, 2003

by Reene

compuserved posted:

what did you have to do specifically? looking to get a thinkpad soon and i'm wondering if i'll run into this

if you want to be completely certain, lenovo has a "certified for linux" program. the x250 isn't on their matrix yet, but the x1 carbon is

i assume the x250 will get added once an rhel or ubuntu release includes the needed graphics drivers rather than getting them from git or something

Sapozhnik
Jan 2, 2005

Nap Ghost

Athas posted:

I can report Debian on the ThinkPad X250 as a very needs suiting laptop for hacking. I only had to apply one kernel patch and compile and install one Xorg video driver from Git.

VAGENDA OF MANOCIDE
Aug 1, 2004

whoa, what just happened here?







College Slice

Notorious b.s.d. posted:

to get started with chef would not take you very long

:siren: ENTERPRISE CM SOLUTIONS :siren:

Notorious b.s.d.
Jan 25, 2003

by Reene

ruby idiot railed posted:

:siren: ENTERPRISE CM SOLUTIONS :siren:

your username is v. appropriate

read, comprehend, post

VAGENDA OF MANOCIDE
Aug 1, 2004

whoa, what just happened here?







College Slice

Notorious b.s.d. posted:

your username is v. appropriate

read, comprehend, post

not sure if you realize I'm agreeing with you

Notorious b.s.d.
Jan 25, 2003

by Reene
sure didn't seem like it

anyway cm doesn't have to be enterprisey, and you can port your ugly non-enterprisey local work to a big setup later, or borrow fancy work from the big boys and use it on your pissant poo poo

so i guess if we're gonna use sirens:

:siren: code re-use, in MY crappy infrastructure!? :siren:

pram
Jun 10, 2001
hahaha ruby lol

pram
Jun 10, 2001
also lol nano

Notorious b.s.d.
Jan 25, 2003

by Reene
yeah if you hate ruby use puppet

puppet is way easier to learn because no loving ruby

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

Notorious b.s.d. posted:

yeah if you hate ruby use puppet

puppet is way easier to learn because no loving ruby

until it fucks up or you have to figure out why you did a thing

"i sure am glad i didn't learn another programming language" - idiots

triple sulk
Sep 17, 2014



Cocoa Crispies posted:

"i sure am glad i didn't learn another programming language" - javascript "'"'engineers'"'"

pram
Jun 10, 2001
ruby is unmitigated poo poo bruh

pram
Jun 10, 2001
there is LITERALLY no situation where id use ruby for anything else. so its basically a dsl for chef and mcollective

Soricidus
Oct 21, 2010
freedom-hating statist shill
"it's worth making the effort to set things up with good and scalable tools in the first place, so you won't run into problems later when your requirements grow"

*picks ruby*

midnightclimax
Dec 3, 2011

by XyloJW
what a poo poo discussion

It's like internet tough guy for turbo-nerds

VAGENDA OF MANOCIDE
Aug 1, 2004

whoa, what just happened here?







College Slice

Notorious b.s.d. posted:

sure didn't seem like it

ruby idiot railed posted:

lol if you're cjing linux individually

just lol

ruby idiot railed posted:

P sure whoever's the one advocating for actually telnetting into a server deployment is the wrong one here jfyi

ruby idiot railed posted:

as soon as you have to spend "a little while" fixing it you're gonna wish you had some kind of cm

read, comprehend, post

Notorious b.s.d.
Jan 25, 2003

by Reene

ruby idiot railed posted:

read, comprehend, post

i am chastened

Notorious b.s.d.
Jan 25, 2003

by Reene

Soricidus posted:

"it's worth making the effort to set things up with good and scalable tools in the first place, so you won't run into problems later when your requirements grow"

*picks ruby*

only the client side is ruby.

puppet and chef server-side both migrated off ruby because lol @ thousands of clients to a ruby server. puppet has moved to the jvm. chef has moved to erlang

Adbot
ADBOT LOVES YOU

Notorious b.s.d.
Jan 25, 2003

by Reene

Cocoa Crispies posted:

until it fucks up or you have to figure out why you did a thing

"i sure am glad i didn't learn another programming language" - idiots

puppet has its own dsl that is a real language with a parser and stuff. it is much easier to learn than all of ruby, so you can teach it to your idiot sysadmins quickly.

also, since it uses its own language, they made it fully declarative and really easy to statically analyse. puppet will happily print you a dependency graph and it's 100% correct, not any kind of heuristic guessing game bullshit

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply