Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [configuration-management]

Managing configurations across environments is part of the configuration management.

-1
votes
0answers
10 views

Importing configuration fail because modules does not exist

When updating a config setting and saving, I am getting an error I made the changes to the config setting and then ran Import the listed configuration changes? (yes/no) [yes]: > yes afterwards ...
-4
votes
0answers
20 views

How I can change drupal site UUID and its runing in docker?

My Docker file version: '3.1' services: drupal: image: drupal:8-apache ports: - 8082:80 volumes: - /var/www/html/modules - /var/www/html/profiles - /var/www/html/themes # this takes ...
-2
votes
1answer
43 views

Should configuration synchronization be used only between cloned sites?

Can it be used to get configuration from one site to another site which is not a clone. eg: SiteX is installed using composer create-project drupal-composer/drupal-project:8.x-dev SiteX and ...
-2
votes
0answers
52 views

Can configuration synchronization be used between cloned sites?

I have SiteA.com installed using composer at /var/www/html/siteA and database as DB_A I have SiteB.com installed using composer at /var/www/html/siteB and and database as DB_B Now I ...
0
votes
1answer
27 views

How to check for differences in config

Is there any way to check for differences with config in Drush? I checked the list of drush 8 config commands and I couldn't find anything. The reason I need this is that I have a site that runs ...
0
votes
1answer
44 views

How do I export and import content types (including fields) between environments?

I've been trying to find a smart way of exporting content type and all its fields from one installation of Drupal to another. The core "Configuration synchronization" export only export the content ...
0
votes
1answer
33 views

Copy installed modules and configuration to new installation

I have a Drupal 8 application with mysql as database. I installed bunch of third part modules such as domain, search_api, pdf etc... Most I installed using composer and a very few using "Install ...
0
votes
1answer
26 views

Grant permission to current user at runtime in specific environment

Many Drupal contrib modules have inverse "feature flag" implementations vis-a-vis a killswitch variable added to settings.local.php to disable a feature: // Killswitch setting. $settings['...
-1
votes
1answer
7 views

Is it possible to set a role specific value for “allow_insecure_uploads?”

I want to override the value for "allow_insecure_uploads" which is in system.file config, but only for specific roles. Am I going to need to do this in a module / does one already exist?
-4
votes
2answers
33 views

Is there a single Drush and or Drupal console command to export and import all configurations?

Normally I goto Config Sync then export all > save config tar.gz > import. Can this be achieved with one command?
0
votes
0answers
13 views

Proper Schema file for integer and select

We have a custom module, mymodule that has an admin form where it stores field of type: number and select. I need to create a mymodule/config/schema/mymodule.schema.yml file, but don't know what to ...
0
votes
1answer
35 views

Change site name programmatically

We have a requirement that when we save a node that nodes title should be the site name. We used to do it in Drupal 7. But I was not able to find the proper method for it in Drupal 8. This is what we ...
0
votes
1answer
12 views

How to set a multi line value from drush vset

I was trying to add a value to the drupal antibot antibot_form_ids variable. drush vget antibot_form_ids returns a string separated by /r/n Adding just a value to this string isn't just enough. If ...
1
vote
2answers
85 views

Programmatically set the front page per site?

I have a site that is using a 'fake' multi-site instance (I think, someone else implemented it). We created 3 directories in sites: sites/site1 sites/site2 sites/site3 and in each settings.php ...
1
vote
1answer
33 views

How to sync configuration between multiple developers' environments

D8 Configuration management is really awesome and easy to use when there's only one developer working on a project. We are running into challenges in keeping configuration synced between environments ...
0
votes
1answer
28 views

Translation of label in yml configuration file

After having read https://www.drupal.org/docs/8/api/translation-api/overview and in particular Translation for shipped configuration and configuration schemas I tried to use this ability to have ...
2
votes
2answers
43 views

Is it possible to update module provided configuration schema in an hook_update_N()?

So I have a custom module with a module.schema file, defining a configuration schema for that module, not talking about database/field schema. module.settings: type: config_object label: 'Settings ...
1
vote
0answers
28 views

Difference between field and field storage in configuration type?

I am exporting a content type and field associated with the synchronize option available in Drupal 8. I exported and imported the YAML code for content type successfully. When I was about to do the ...
0
votes
1answer
20 views

Load the value of an entity field type in another form

I have created a custom field and I wish to load the value dynamically in another form in relation to the specific node entity the value belongs to. I understand that to get the value I have to use/...
1
vote
0answers
47 views

Prevent block config from being exported?

In Drupal 8, how can I prevent block instance config from being exported? I want it to just be ignored.
2
votes
1answer
33 views

Exporting and Importing configuration setting only

I have a development and a production site. Both are working in an offline environment, Drush and Composer are not installed. The plan is to make all changes always on the development and during each ...
0
votes
1answer
13 views

Config changes only propagated via manual form submit

My question is related to the Search API Drupal 8 module. I am modifying my configuration via config file updates. After I am installing my custom module, I can see my config reflected in the search ...
0
votes
2answers
55 views

Development without pulling production DB to your local machine

When you push configuration to production, any configuration that has changed in production that has not been exported into code will either be reset to the values in code or be wiped out entirely if ...
0
votes
0answers
24 views

Is there a way to do a bundle copy from D7 to D8?

In D7 there was a module called Bundle Copy that allowed exporting/importing the structure of a bundle. In a more painful manner this could also be done with Features. In D8 I think the same can be ...
0
votes
1answer
28 views

what does “vcs” mean when i export a configuration

I would like to know what vcs stands for . when i do a drush config:export, i have to choose "vcs" but I'm not sure what that means? I am on an acquia server , does that have something to do with ...
4
votes
2answers
156 views

Disabling module with config sync and removing with composer

I have an issue disabling modules, I've searched but cannot find something useful: - Developer A disable module and via composer remove it - I pull his changes so i run composer install that remove ...
0
votes
1answer
34 views

Can't import configs on server due to some entities

So when i try to manually import configs (/admin/config/development/configuration) i get these messages: Entities exist of type Media and Media type Image. These entities need to be deleted before ...
0
votes
1answer
23 views

Module dependent on field configuration in another module

I have two modules that rely on the same field; A simple boolean field that represents a state for taxonomy terms. My problem is my configuration management for this. My ideal situation would be to ...
1
vote
1answer
47 views

Config import conflict, how to remove lock

I am trying to import config on my staging site, and I repeatedly get the following message: Another request may be synchronizing configuration already. I know that there are no other processes ...
0
votes
1answer
16 views

How can I iterate through all the key and value of configuration object

I have an admin setting form (Configuration form) called 'example.settings'. I can load the configuration using below code. $config = \Drupal::config('example.settings'); Is there a way to iterate ...
1
vote
1answer
115 views

Settings contains a dot which is not supported, but module gets enabled properly

I'm developing a search engine module for Drupal 8. On a clean new Drupal website, I can install it from the admin GUI, but when I enable it I have the classical white screen (The website ...
0
votes
1answer
51 views

How to remove field from form and configuration?

We have a custom module, mymodule that has a form, mymoduleForm with two fields: enabled content types and urls. We no longer need the enabled content types field on the form and want to remove it ...
0
votes
0answers
13 views

Install and configure Split module for existing configuration files

I have an existing drupal 8 project that has sync directory with the all configuration files. I was wondering if is possible to change this and use the configuration split module:
1
vote
0answers
21 views

Add permission to existing role in custom module using configuration

Permissions may be added to existing roles programatically as described in this answer. However, I would like to put that into configuration. I can create a role calling king by putting user.role....
0
votes
0answers
21 views

What is the difference in State API and Config API?

It is a bit confusing to understand the difference in State API and Config API in Drupal 8. I went through the documentation of both on drupal.org but it is not clear to me yet. Do we define both ...
0
votes
0answers
17 views

How to enable module in production but not dev? [duplicate]

Is there a way (via settings.local.php maybe) of having a module enabled in production but not in dev. I am thinking of PHP Shield in particular
2
votes
1answer
54 views

Unexpected error during import . . . plugin does not exist error on drush config import

This is an issue I've had occasionally when trying to delete a plugin in a custom module. In this example, once a filter format filter plugin has been enabled it's impossible to remove. If you ...
0
votes
1answer
49 views

Theme shown without styles

I executed the config:import: import successfully, but now it seems that the theme settings are no longer found. The site is now seen as in the attached image How can I solve the problem? Note: I ...
1
vote
1answer
41 views

Optional configuration and order of enable modules on profile

I have a bug or a misconfiguration I don't understand. I'm creating a profile to create new web sites with an advance configuration quickly. But I meet a bug during installation with dependencies of ...
1
vote
1answer
47 views

How to extend block.block.* schema configuration file

Someone know how to exend this schema located in block module in core, to add a new data type in mapping from my custom module? The point is that I need to add a Boolean field for all the blocks in ...
0
votes
0answers
16 views

Configuration not saved on server

I am building an Acquia hosted Drupal 8 site. I saved config files in /config/sync folder and it's defined in settings.php. Everything works fine. After then, I pushed up the files using git in dev ...
0
votes
1answer
56 views

Drupal::config to access Site default timezone

Like the title says, I want to access the sites default timezone. Guess Drupal::config('system.date')->get('timezone')['default'] is the right function. I really would love to know how to use ...
0
votes
1answer
38 views

Is it possible to get original configuration when another Config Split is activated? (CONDITIONAL SPLIT is used)

I have dev and prod environments. I use payment getaway. There are different api keys for dev and prod envs, it's like test and live mode of the payment method. There is active dev config split ...
2
votes
1answer
63 views

Where are config dependencies stored?

I have this error when importing a single piece of config manually: Configuration foo.api depends on the MODULE extension that will not be installed after import. There is no "MODULE" extension in ...
0
votes
1answer
25 views

Is there a way to search Drupal's and contrib modules configuration settings?

With so many different modules in use with configuring Drupal it is hard to keep track of which settings are configured where, such as whether some CSS is set by the Code per Node or CSS Injector. It ...
0
votes
1answer
85 views

Issues migrating site config at various points in project lifecycle

Issues migrating site config at various points in project lifecycle Hi My team and I have begun a new project for our company using the very latest version of Drupal 8 (version 8.5.6) We wanted to ...
0
votes
0answers
18 views

Is it possible to use an API to update CSS Injector rules?

I want to maintain a record of changes to CSS Injector rules by editing the CSS code in a node and using rules to update the relevant CSS injector rules. With the help of the Diff module I should ...
0
votes
0answers
48 views

How to delete configurations when module is uninstalled?

We have a custom module mymodule that has the following structure. It basically has a configuration object that we are using in a mymodule_preprocess_node() call to do some logic and display certain ...
0
votes
0answers
38 views

Properly export text format and editor settings

I'm trying to export the CKeditor settings and restricted_html settings but it's partially imported in the end. I'm exporting the editor.editor.restricted_html.yml and the filter.format....
3
votes
1answer
319 views

When to create schema while working with config entity?

We have a custom form mymoduleForm.php that is used to perform some logic by calling mymodule_preprocess_node(). We were able to add addCacheableDependency() and now the mymodule_preprocess_node hook ...