This is a tutorial that uses a toy infrastructure project to highlight some of CUE's features and show how it can be used to simplify and manage infrastructure. Go to Tutorial if you want to skip the introductory stuff.
From cuelang.org:
This is a tutorial that uses a toy infrastructure project to highlight some of CUE's features and show how it can be used to simplify and manage infrastructure. Go to Tutorial if you want to skip the introductory stuff.
From cuelang.org:
--- | |
- name: Ejecutar Proceso con VAULT_TOKEN | |
hosts: localhost # Puedes ajustar los hosts según tu entorno | |
gather_facts: false # Desactivar recopilación de hechos | |
vars: | |
vault_address: "http://direccion-de-tu-vault:8200" # Ajusta la dirección de tu Vault Server | |
tasks: | |
- name: Establecer VAULT_TOKEN como variable de entorno |
I hereby claim:
To claim this, I am signing this object:
2023-07-04 19:16:36.788 TRACE tokio-runtime-worker gossip: Cleaned up 0 stale messages, 0 left (0 known) protocol=/cb78cf8b70f6db4099d9de03e2cdf98a56ef49fc04d22bd460a7b6bb598c4310/grandpa/1 | |
2023-07-04 19:16:37.888 TRACE tokio-runtime-worker gossip: Cleaned up 0 stale messages, 0 left (0 known) protocol=/cb78cf8b70f6db4099d9de03e2cdf98a56ef49fc04d22bd460a7b6bb598c4310/grandpa/1 | |
2023-07-04 19:16:38.079 INFO tokio-runtime-worker substrate: 💤 Idle (1 peers), best: #0 (0xcb78…4310), finalized #0 (0xcb78…4310), ⬇ 0 ⬆ 0 | |
2023-07-04 19:16:38.403 DEBUG tokio-runtime-worker sync: Propagating transactions | |
2023-07-04 19:16:38.899 TRACE tokio-runtime-worker sub-libp2p: Ping time with PeerId("12D3KooWBzwDUvxn9X9Zz4E9SYgWoNYFwoMU6GRTJbD7E7tZYjpj"): 290.082µs | |
2023-07-04 19:16:38.924 TRACE tokio-runtime-worker sub-libp2p: Ping time with PeerId("12D3KooWBzwDUvxn9X9Zz4E9SYgWoNYFwoMU6GRTJbD7E7tZYjpj"): 211.812µs | |
2023-07-04 19:16:38.988 TRACE tokio-runtime-worker gossip: Cleaned up 0 stale messages, 0 left (0 know |
package_update: true | |
package_upgrade: true | |
groups: | |
- docker | |
users: | |
- name: ubuntu | |
groups: docker | |
- name: telegraf | |
groups: docker | |
cloud_config_modules: |
blockscout_1 | 2022-08-12T14:53:30.577 [error] Task #PID<0.3980.361> started from Indexer.Block.Realtime.Fetcher terminating
blockscout_1 | ** (stop) exited in: GenServer.call(Indexer.Fetcher.InternalTransaction, {:buffer, [19426479]}, 10000)
blockscout_1 | ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
blockscout_1 | (elixir 1.13.1) lib/gen_server.ex:1019: GenServer.call/3
blockscout_1 | (indexer 0.1.0) lib/indexer/block/realtime/fetcher.ex:385: Indexer.Block.Realtime.Fetcher.async_import_remaining_block_data/2
blockscout_1 | (indexer 0.1.0) lib/indexer/block/realtime/fetcher.ex:224: Indexer.Block.Realtime.Fetcher.import/2
blockscout_1 | (indexer 0.1.0) lib/indexer/block/fetcher.ex:167: Indexer.Block.Fetcher.fetch_and_import_range/2
blockscout_1 | (indexer 0.1.0) lib/indexer/block/realtime/fetcher.ex:293: Indexer.Block.Realtime.Fetcher.do_fetch_and_import_blo
blockscout_1 |
blockscout_1 | Options:
blockscout_1 |
blockscout_1 | [conflict_target: [:block_hash, :block_index], on_conflict: #Ecto.Query<from i0 in Explorer.Chain.InternalTransaction, where: fragment("(EXCLUDED.transaction_hash, EXCLUDED.index, EXCLUDED.call_type, EXCLUDED.created_contract_address_hash, EXCLUDED.created_contract_code, EXCLUDED.error, EXCLUDED.from_address_hash, EXCLUDED.gas, EXCLUDED.gas_used, EXCLUDED.init, EXCLUDED.input, EXCLUDED.output, EXCLUDED.to_address_hash, EXCLUDED.trace_address, EXCLUDED.transaction_index, EXCLUDED.type, EXCLUDED.value) IS DISTINCT FROM (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", i0.transaction_hash, i0.index, i0.call_type, i0.created_contract_address_hash, i0.created_contract_code, i0.error, i0.from_address_hash, i0.gas, i0.gas_used, i0.init, i0.input, i0.output, i0.to_address_hash, i0.trace_address, i0.transaction_index, i0.type, i0.value), update: [set: [block_number: fragment("EXCLUDED.block_number"), call_type: fragment("EXCLUDED.c
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
IPEnableRouter
- Consensus Algoriithm must have - | |
- Agreement -> Where every correct process must agree on the same value. | |
- Validity -> The value agreed on must have been proposed by another process. | |
- Termination -> A value will eventually be decided by every correct process. | |
- CAP Theorem -> An algorithm cannot provide more than of the three following properties - | |
- Consistency | |
- Availability | |
- Partition Tolerance | |
- There are different types of failure that a consensus algorithm might have to deal with fail. | |
- Fail-stop |
$$
is the process ID (PID) of the script itself.$!
gives the process id of the most recently executed background process.$?
Stores the exit value of the last command that was executed.$#
is the special parameter in which bash gives the number of positional parameter in decimal.$@
Stores all the arguments that were entered on the command line, individually quoted ("$1" "$2" ...).$*
Stores all the arguments that were entered on the command line ($1 $2 ...).$_
The underscore variable is set at shell startup and contains the absolute file name of the shell or script being executed as passed in the argument list.