9
Introduction Overview Proles for a purpose Gentoo @ IsoHunt or, you did WHAT with proles? Robin H Johnson <[email protected]> Gentoo Infrastucture Gentoo Miniconf Prague 2012/10/20 Robin H Johnson <[email protected]> Gentoo Infrastucture Gentoo @ IsoHunt

IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Gentoo @ IsoHuntor, you did WHAT with profiles?

Robin H Johnson <[email protected]>Gentoo Infrastucture

Gentoo Miniconf Prague2012/10/20

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 2: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

IsoHunt...

BitTorrent search engine3+ racks, 2+ locations, 30+ machines300+ Mbit/sec100% Gentoo powered

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 3: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

IsoHunt...

BitTorrent search engine3+ racks, 2+ locations, 30+ machines300+ Mbit/sec100% Gentoo powered

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 4: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Gentoo Profiles

Originally single-parentMulti-parent release in 2008.0package.{mask,use,unmask,accept_keywords}

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 5: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Non-Prefix profiles view

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 6: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Subset of profilesamd64+x86, no prefix, no selinux, no hardened, no targets

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 7: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Profiles for a purpose

Location(censored)

Hardware classbarcelona, k8, nehalem, x86_64, xeon_c2d, xeon_e5,xeon_york

Machine roledb, infra, lucene, monitor, router, vm, web

Host$HOSTNAME

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 8: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Parent file

/usr/portage/profiles/default/linux/amd64/10.0/server/etc/managed-portage/common/pre/make.profile/etc/managed-portage/location/XXXXX/make.profile/etc/managed-portage/class/db/make.profile/etc/managed-portage/hwtype/xeon_york/make.profile/etc/managed-portage/common/post/make.profile

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt

Page 9: IsoHunt - or, you did WHAT with profiles? - dev.gentoo.orgrobbat2/miniconf-2012-isohunt.pdf · IntroductionOverviewPro1lesforapurpose Gentoo@IsoHunt or,youdidWHATwithpro1les? RobinHJohnson

Introduction Overview Profiles for a purpose

Setup

ln -sf /etc/managed-portage/hosts/${h}/make.conf /etc/make.confln -sf /etc/managed-portage/hosts/${h}/make.profile/ /etc/make.profileln -sf /etc/managed-portage/hosts/${h}/etc-portage/ /etc/portage

Robin H Johnson <[email protected]> Gentoo InfrastuctureGentoo @ IsoHunt