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
- clause may specify a variable after the exception name. In this example it’s an ''e_variable''. This var... trying to load a module. The attributes are: * name – represents the name of the module that was attempted to be imported; * path – represents the path t... t ImportError as e: print(e.args) print(e.name) print(e.path) </code> <code ; output> ("No m
- 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
- 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> ==
- Sesión 8 : kubernetes @info:cursos:pue:devops
- apiVersion: v1 kind: ServiceAccount metadata: name: admin-user namespace: kube-system --- apiVersi... s.io/v1beta1 kind: ClusterRoleBinding metadata: name: admin-user roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: admin-user namespace: kube-system EOF</code>
- 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
- Sesión 16 prometheus on kubernetes @info:cursos:pue:devops
- l apiVersion: v1 kind: ServiceAccount metadata: name: helm namespace: kube-system --- apiVersion: rb... s.io/v1beta1 kind: ClusterRoleBinding metadata: name: helm roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: helm namespace: kube-system </code> * obte
- Sesión 7: Seguridad, Prometheus @info:cursos:pue:devops
- _ADDRESS:-grafana@test.com} #- GF_SMTP_FROM_NAME=${GF_SMTP_FROM_NAME:-Grafana} #- GF_SMTP_HOST=${GF_SMTP_HOST:-smtp:25} #- GF_SMTP_USER=${GF... host/sys:ro - /:/rootfs:ro - /etc/hostname:/etc/nodename command: - '--path.sysfs=/host/sys' - '--path.procfs=/host/proc' -
- 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... .world') recommended_logger = logging.getLogger(__name__) </code> Logger names are similar to the names... to get the Logger object, both with and without a name. We recommend calling the ''getLogger'' function with the ''__name__'' argument, which is replaced by the current mo
- 5.1 Metaprogramming @info:cursos:pue:python-pcpp1:m1
- familiar with some special attributes: * ''%%__name__%%'' – inherent for classes; contains the name of the class; * ''%%__class__%%'' – inherent for both... print('"dog" is an object of class named:', Dog.__name__) print() print('class "Dog" is an instance of:'... ype(, , )'': * the argument specifies the class name; this value becomes the ''%%__name__%%'' attribut
- 1.4 Talking to JSON in Python @info:cursos:pue:python-pcpp1:m4
- '. Note: the ''’s'' at the end of the function's name means string. There is a very similar function with the name deprived of this suffix which **writes the JSON s... > import json class Who: def __init__(self, name, age): self.name = name self.age = age some_man = Who('John Doe', 42) print(json.dump
- 2.4 Decorators @info:cursos:pue:python-pcpp1:m1
- a new "decorating" function (or class), hence the name "decoration". This is done by passing the origina... int('We are about to call "{}"'.format(function.__name__)) return function </code> The last lines a... accepts an object as a parameter, displays a ''__name__'' attribute value of the parameter, and returns... is is the most important thing to remember**: the name of the simple_function object ceases to indicate
- Sesión 5: vagrant, ansible @info:cursos:pue:devops
- ig.vm.box = "hashicorp/precise64" config.vm.hostname = "apachephp" config.vm.provision "shell", path... config.vm.provider "virtualbox" do |vb| # vb.name = "apachephp" # vb.memory = 1024 # vb.cpus ... fig.vm.box = "debian/stretch64" config.vm.hostname = "apachefrontal" config.vm.network "private_... fig.vm.box = "debian/stretch64" config.vm.hostname = "mysqlbackend" config.vm.network "private_n