{"id":1476,"date":"2019-09-16T13:15:01","date_gmt":"2019-09-16T19:15:01","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=1476"},"modified":"2019-09-25T15:12:25","modified_gmt":"2019-09-25T21:12:25","slug":"chef-instalacion-de-server-en-debian-8","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=1476","title":{"rendered":"CHEF: Instalaci\u00f3n de server en Debian 8"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Para este servidor se tiene una m\u00e1quina virtual con las siguientes caracter\u00edsticas:<ul><li>Debian 8<\/li><li>Disco duro de 64 GB<\/li><li>Memoria de 6 GB<\/li><li>2 n\u00facleos<\/li><li>vmbr0 como interfaz de red<\/li><li>2 particiones, una de 4 GB de swap y el resto para el sistema.<\/li><\/ul><\/li><li>A\u00f1adir el usuario ugit al grupo root<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>adduser ugit root<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Habilitar el acceso por ssh<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>su\napt install openssh-server openssh-client<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Abrimos el archivo<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/network\/interfaces<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Modificamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code># The loopback network interface\nauto lo\niface lo inet loopback\n\n# The primary network interface\nallow-hotplug eth0\niface eth0 inet static\n\n------------------------------------\n# The loopback network interface\nauto lo\niface lo inet loopback\n\n# The primary network interface\nallow-hotplug eth0\niface eth0 inet static\n address 10.20.200.68\n netmask 255.255.255.0\n network 10.20.200.0\n broadcast 10.20.200.255\n gateway 10.20.200.1\n dns-nameservers 10.20.200.36 8.8.8.8\n dns-domain siua.ac.cr\n dns-search siua.ac.cr<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos la carpeta<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir downloads\nchmod 777 downloads<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Descargamos el chef server e instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/downloads\nwget https:\/\/packages.chef.io\/files\/stable\/chef-server\/12.17.33\/ubuntu\/16.04\/chef-server-core_12.17.33-1_amd64.deb\ndpkg -i chef-server-core_12.17.33-1_amd64.deb<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Descargamos chef development kit e instalamos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/packages.chef.io\/files\/stable\/chefdk\/3.3.23\/debian\/8\/chefdk_3.3.23-1_amd64.deb\ndpkg -i chefdk_3.3.23-1_amd64.deb<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Instalamos la interfaz de chef<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chef-server-ctl install chef-manage<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reconfiguramos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chef-server-ctl reconfigure\nchef-manage-ctl reconfigure<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos la siguiente carpeta<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir drop<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Creamos el usuario administrador y la organizaci\u00f3n<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chef-server-ctl user-create ugitadmin Ugit Admin interuniversitariadealajuela@gmail.com 'Calypso_ADM_2' --filename \/drop\/ugitadmin.pem\n\nchef-server-ctl org-create siua 'Sede Interuniversitaria de Alajuela' --association_user ugitadmin --filename siua-validator.pem<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Reconfiguramos<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chef-server-ctl reconfigure\nchef-manage-ctl reconfigure<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ingresamos a la interfaz web<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>chef-dev.siua.ac.cr\/organizations\/siua<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Iniciamos sesi\u00f3n para comprobar que todo este bien<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"\/wp-content\/uploads\/2019\/09\/Selection_003.png\" alt=\"\" class=\"wp-image-1483\" width=\"232\" height=\"245\"\/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>CHEF: Instalaci\u00f3n de server en Debian 8<\/p>\n","protected":false},"author":2,"featured_media":2143,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98],"tags":[99,100,89],"class_list":["post-1476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chef","tag-chef","tag-debian","tag-server"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1476"}],"version-history":[{"count":2,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1476\/revisions"}],"predecessor-version":[{"id":2144,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/1476\/revisions\/2144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/2143"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}