Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- DevOps Sesión 12 (2022-03-21) @info:cursos:pue:devops2022
- e yaml; playbooks_resueltos/modulo_file.yml>--- - name: Ejemplos de modulos de ficheros y openssl hosts: clientes remote_user: root tasks: - name: Crear un firchero con contenido especificado ... dest="/tmp/ejemplo-master.txt" backup=yes - name: Propiedades Fichero file: path="/tmp/ejemp... .txt" backup=yes mode="777" owner="vagrant" - name: copia archivo /etc/hostname a remoto copy:
- Sesión 12 : k8s (traefik) @info:cursos:pue:devops
- on: rbac.authorization.k8s.io/v1beta1 metadata: name: traefik-ingress-controller rules: - apiGroups:... on: rbac.authorization.k8s.io/v1beta1 metadata: name: traefik-ingress-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: traefik-ingress-controller subjects: - kind: ServiceAccount name: traefik-ingress-controller namespace: kube-sys
- 4.1 Shallow and deep copy operations @info:cursos:pue:python-pcpp1:m1
- a variable, which you should treat as a label or name binding, is created, and this label refers to a d... <code python> import copy a_dict = { 'first name': 'James', 'last name': 'Bond', 'movies': ['Goldfinger (1964)', 'You Only Live Twice'] } b_... output** <code ; output> Source list of candies {'name': 'Lolly Pop', 'price': 0.4, 'weight': 133} {'nam
- 3.1 Advanced techniques of creating and serving exceptions @info:cursos:pue:python-pcpp1:m1
- ort introduction to exceptions; * review of the named attributes of exception objects; * introductio... t all potential exceptions have their unambiguous names, so you can categorize them and react appropriat... a try... except block. == Advanced exceptions - named attributes Now it’s time to dive more deeply int... clause may specify a variable after the exception name. In this example it’s an ''e_variable''. This var
- LPIC2 2021 Sesión 9 (2021-03-02) @info:cursos:pue:lpic2-2021
- figuración para el master del servidor DNS <code; named.conf> options { directory "/var/named"; %%//%% aunque esté enjaulado, no lo sabe... forwarders{ 8.... 2.168.2.152;}; }; zone "." { type hint; file "named.ca"; }; zone "curso.esp"{ type master; allow-... trasgu.curso.esp. $ORIGIN curso.esp. agendapc5 CNAME pc5 curso A 192.168.2.3 fresnosa CNAME trasgu
- 3.1 PEP 8 – Introduction @info:cursos:pue:python-pcpp1:m2
- * **pycodestyle** (formerly called pep8, but the name was changed to avoid confusion) - Python style gu... st_one = [1, 2, 3, 4, 5, 6 ] a = my_function_name(a, b, c, d, e, f) </code> <code python ✔> #... 1, 2, 3, 4, 5, 6, ] a = my_function_name(a, b, c, d, e, f) </code> ... ituations where your comments or docstrings use a name (e.g., an author’s name) that contains a non-ASCI
- 1.1 SQLite @info:cursos:pue:python-pcpp1:m5
- example above, the method takes only the database name as the argument. This means that the database wil... .db')</code> It's also possible to use a special name, '':memory:'', which creates a database in RAM: <... onsist of only one table called tasks: * id * name * priority To create the above table, we’ll nee... tax looks like this: <code sql>CREATE TABLE table_name ( column1 datatype, column2 datatype, column3 dat
- 1.7 Four magic letters: CRUD @info:cursos:pue:python-pcpp1:m4
- in the collection must have the property of this name – this is how the server identifies each item and... r'' assumes that the data collection inherits its name from the source data file name. As we named the file cars, the server will publish the data as cars, too. You have to use the name in
- Sesión 16 prometheus on kubernetes @info:cursos:pue:devops
- l apiVersion: v1 kind: ServiceAccount metadata: name: helm namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: helm roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount
- LPIC2 2021 Sesión 8 (2021-02-25) @info:cursos:pue:lpic2-2021
- 6 * Material Practicas LPIC-2/LPIC-202/1-Domain Name Server/ * Material Practicas LPIC-2/LPIC-202/1-Domain Name Server/1-Resolviendo dominio curso.pdf * Material Practicas LPIC-2/LPIC-202/1-Domain Name Server/2-Laboratorio DNS RedHat7.pdf === DNS: configuración básica * Domain Name Server * clientes * servidores (bind, dns
- Sesión 8 : kubernetes @info:cursos:pue:devops
- e más de 100 nodos, escalan con balanceadores * namespaces: * comparten servicios * como un "s... parten red, se ven * kubernetes: si comparte *namespace*, se ven * conceptos kubernetes * depl... apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRol
- 2.1 PEP 20 – The Zen of Python @info:cursos:pue:python-pcpp1:m2
- ty. Giving self-explanatory variable and function names, or adding more explicitness to imports or funct... e it saving time by having to think up meaningful names, the effort taken to format your code, or any ot... rs to develop in the future. Giving **meaningful names** to variables, functions, modules, and classes;... r guessing. Give your variables **self-commenting names**, and **leave comments** where necessary. If yo
- Sesión 6 : ansible @info:cursos:pue:devops
- n 6 : ansible == ansible === become <code yaml> - name: servicio service: name: httpd state: started become: yes </code> <code yaml> - name: servicio service: name: httpd state: started become: yes become_user: apache </code> ==
- 5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
- ent way than decorators: * decorators bind the names of decorated functions or classes to new callabl... familiar with some special attributes: * ''%%__name__%%'' – inherent for classes; contains the name of the class; * ''%%__class__%%'' – inherent for both... s dog = Dog() print('"dog" is an object of class named:', Dog.__name__) print() print('class "Dog" is a
- 4.1 Logging in Python @info:cursos:pue:python-pcpp1:m5
- ll the ''getLogger'' function without providing a name. The root logger is at the highest point in the h... s place in the hierarchy is assigned based on the names passed to the ''getLogger'' function. <code pyt... .world') recommended_logger = logging.getLogger(__name__) </code> Logger names are similar to the names of the Python modules in which the dot separator is u