mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
Initial commit for Oracle Cloud Infrastructure modules (#53156)
* Initial commit for Oracle Cloud Infrastructure modules * Update oci_utils based on review comments - remove has_user_provided_value_for_option - remove required false
This commit is contained in:
parent
8edae1bc61
commit
07b9f52fd5
11 changed files with 2438 additions and 0 deletions
0
lib/ansible/module_utils/oracle/__init__.py
Normal file
0
lib/ansible/module_utils/oracle/__init__.py
Normal file
59
lib/ansible/module_utils/oracle/oci_logging.yaml
Normal file
59
lib/ansible/module_utils/oracle/oci_logging.yaml
Normal file
|
@ -0,0 +1,59 @@
|
|||
---
|
||||
# Copyright (c) 2017, 2018 Oracle and/or its affiliates.
|
||||
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
|
||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
# Apache License v2.0
|
||||
# See LICENSE.TXT for details.
|
||||
version: 1
|
||||
disable_existing_loggers: False
|
||||
formatters:
|
||||
simple:
|
||||
format: "[%(asctime)s - %(name)s - %(lineno)s - %(funcName)s - %(levelname)s] - %(message)s"
|
||||
|
||||
handlers:
|
||||
console:
|
||||
class: logging.StreamHandler
|
||||
level: DEBUG
|
||||
formatter: simple
|
||||
stream: ext://sys.stdout
|
||||
|
||||
info_file_handler:
|
||||
class: logging.handlers.RotatingFileHandler
|
||||
level: INFO
|
||||
formatter: simple
|
||||
filename: "{path}/oci_ansible_info_{date}.log"
|
||||
maxBytes: 10485760 # 10MB
|
||||
backupCount: 20
|
||||
encoding: utf8
|
||||
mode: "a"
|
||||
|
||||
error_file_handler:
|
||||
class: logging.handlers.RotatingFileHandler
|
||||
level: ERROR
|
||||
formatter: simple
|
||||
filename: "{path}/oci_ansible_errors_{date}.log"
|
||||
maxBytes: 10485760 # 10MB
|
||||
backupCount: 20
|
||||
encoding: utf8
|
||||
mode: "a"
|
||||
|
||||
debug_file_handler:
|
||||
class: logging.handlers.RotatingFileHandler
|
||||
level: DEBUG
|
||||
formatter: simple
|
||||
filename: "{path}/oci_ansible_debug_{date}.log"
|
||||
maxBytes: 10485760 # 10MB
|
||||
backupCount: 20
|
||||
encoding: utf8
|
||||
mode: "a"
|
||||
|
||||
#loggers:
|
||||
#any_specific_module e.g. oci_bucket:
|
||||
#level: INFO
|
||||
#handlers: [info_file_handler]
|
||||
#propagate: no
|
||||
|
||||
root:
|
||||
level: DEBUG
|
||||
handlers: [info_file_handler, debug_file_handler, error_file_handler]
|
||||
...
|
1982
lib/ansible/module_utils/oracle/oci_utils.py
Normal file
1982
lib/ansible/module_utils/oracle/oci_utils.py
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue